Forum OpenACS Q&A: Ad_form: Radio + Text in one

Collapse
Posted by Jason Cheung on
Hi all,

Just wondering if it is possible to build an element that looks like the following:

Sex:
[radio] Male
[radio] Female
[radio] Other ____________

So if user selects "Maybe" then he/she has to fill in the text input. If not, I will just do the whole form without ad_form.

Thanks for any help.

Jason

Collapse
Posted by Claudio Pasolini on
Of course you can, but the text field has to be a separate element.

You could even make the text field appear only when needed exploiting the -on_refresh feature of ad_form.