Forum OpenACS Development: Re: Preselecting an option in ad_form

Collapse
Posted by Anny Flores on
Hi,
I think that you should only add the "value" parameter to the element of the form like this:

ad_form -name form_name -form {
{element_name:text(select)
  {label "element_label"}
  {options $options}
  {value $value}
  ...

  }
  ...
}

I hope this helps you!