I made a form in the application, one of the form input element is “choice” shown as radio buttons.
When I checked one of the options and save the form, all the form data saved in database without problem, i.e. the checked radio button value was saved to the database.
However, when I open the form again, all the other previous saved text input are popped up correctly, yet none of the radio button was checked. I tried to put the radio button value in both “Value” and “Placeholder”, but neither option works as they did in text input field.
Is there any way to make the radio button checked based on the value loaded from database?
Hi @coolmoon would you mind sharing some screenshots of how you have set this up and the results you are seeing now versus what you expect to be seeing?
For example, my form has a text input of “name” and radio button “gender” for “male” and “female”.
Once saved, I can see the “coolmoon” under “name” column and “male” under “gender” column in database.
Since I bind the row data with the input through the “Value” setting, when I open the form again, I can see the saved value “coolmoon” in the “name” text input field.
When I do the same with radio button field “gender”, I expected the same thing would happen, i.e. the “male” radio button should be checked to reflect the value saved on the database. However, it seems doesn’t work that way, neither “male” nor “female” is checked, even if the previous input was saved to database successfully. That makes me think previous row update was failed, which is not true.
Is there anyway to have radio button checked based on the value in database when the form is loaded?