Forum OpenACS Q&A: Re: What is wrong with this formspec? It throws errors.

Thank you Avni. Just seen your reply after figuring out the following which seems to give me the desired result:

{af_radar_p:checkbox,options={Yes/No},label=Radar Equipped}

Thank you for your reply.

Regards
Richard

Collapse
Posted by Avni Khatri on
More curious than anything - How does this work? When I try in OpenACS 5.70b1, I get the following error:

Form element 'af_radar_p:checkbox,options={Yes/No},label=Radar' doesn't have the right format. It must be var[:flag[,flag ...]]
while executing
"ad_form -name ....

Collapse
Posted by Ryan Gallimore on
I think that formspec is for xowiki forms, not ad_form.
Ryan,

You're correct. What I posted is a widget spec for an xowiki.Form.

I shall be more careful to be specific in future to avoid confusing things!

😊

Richard

Collapse
Posted by Avni Khatri on
Ah okay! Thanks for clarifying.