Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Radiobutton equivalent in a schema

Avatar

Level 7
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
2 Replies

Avatar

Former Community Member
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.