Radio Button Set is not Populating Data when bound to a Variable
I am facing an issue while working with Radio Button set in VBS, Please find below steps I did.
- I added a type in page level.
2. I created a array variable of the above type.
3. I put the default value of this variable as below.
[
{
"id": 0,
"dayOfWeek": "Sunday"
},
{
"id": 1,
"dayOfWeek": "Monday"
},
{
"id": 2,
"dayOfWeek": "Tuesday"
},
{
"id": 3,
"dayOfWeek": "Wednesday"
},
{
"id": 4,
"dayOfWeek": "Thursday"
},
{
"id": 5,
"dayOfWeek": "Friday"
},
{
"id": 6,
"dayOfWeek": "Saturday"
}
]
4. In the page, I added a Radio Button Set and put the below properties.
Full markup of radio set:
<oj-radioset label-hint="Radio Button Set" class="oj-flex-item oj-sm-12 oj-md-6" options="[[ $variables.dayVar ]]" options-keys.label="dayOfWeek" options-keys.value="id"> </oj-radioset>