Skip to main content
Inspiring
May 25, 2022
Question

checkbox to radio button

Hi all,

in the interface we used checkbox to select multiple, now due to 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? Thanks in advance ,if anyone can advice on this

I have passed choice lables and choice values with equal length.Same error is hitting once I select radio button.

    4 replies

    stefanhelzle0001
    Brainy
    May 25, 2022

    The items in choiceValues and the value must match in data type AND value. A string like "1" does not match the number 1.

    Inspiring
    May 25, 2022

    yes I have given choice lable has yes and value has 1 now.

    richardm900458
    Inspiring
    May 25, 2022

    please use tounformstring instead of tostring.
    tostring creates one single string item for the whole array of type text: "1,2,3,4"
    touniformstring creates {"1","2","3"} ....