Radiobutton equivalent in a schema

Aditya_S_

28-01-2009

I have 2 radio buttons in my form with values "Day" and "Night". I would like to prefill these radio buttons from an XML/database using a schema.



Can someone tell me



1) How would I design the schema to accomodate the radio buttons ?

2) Out of the two what would I bind in the form ?

3) How will I setup the radio buttons to receive string values("Day"/"Night") as input ?



Thanks

Aditya

Replies

Highlighted

pguerett

28-01-2009

In the schema definition you can indicate that a node value is limited to Day or Night. These are the only two valid values that are allowed. When that gets inported into Designer we will create a dropdown list with the two values in it. There is no indication that you want a radio button, so you will have to go and adjust this after you import.



You can indicate what you want for the ON/Off values in the binding tab of the radiobuttonList. In Your case the On value for one radio button will be "Day" and the On Value for the other will be "Night". By querying the RadioButtonList it will tell you which one is On.