Hi,
in the interface we used checkbox to select multiple, now bcz of some reasons user wants to select one item at a time so am thinking to go with radiobutton
is that right way or do we have any other options?
and even i have checked with radio button but am getting this error, hope nothing difference b/w check box and radio button
can anyone suggest me
Discussion posts and replies are publicly visible
Hi Kavya, choosing between checkbox and radio button depends on your UI preference and what kind of options you want to provide to end users. and for the error , looks like the value of the radio button is not available in the choice values array. make sure value parameter of the radioButton must available in choiceValues array.
this is how i have made the changes.. just i have changed check box to radio button
why do you have choice labels as null?
Hi Kavya,
Make sure, your ChoiceValues and ChoiceLabels have same number of values. It can be same also.
ChoiceLabels: This value is used to show to the end user.
ChoiceValues: This value is used to save the value to the database table.
Example of Gender:
ChoiceLabels: {"Male", "Female"}
ChoiceValues: {1,2} or {"Male", "Female"}
will not show any values to end user from choiclabels.. whenever we select radio button then the value as 1 will be saved to db
Please see the below screenshot for your reference.
choiceLabels: {"Male", "Female"}, choiceValues: {1, 2},
choiceLabels: {"Male", "Female"}, choiceValues: {"Male", "Female"},
The choiceLabels and choiceValues arrays must be the same length. else it won't work. Just try to use toggle button
I have given the choice lable same as choice values,still showing the same error.
yes I am using equal number of choice lables and values
can you check whether choicevalue and value is of same datatype?If your choiceValue is of type string {"1"}, then value should be also string.