Turn a 2-option radio-button into a yes/no data type

I have a radio button with Yes/No option, and i want to save to database as a “Yes/No” data type, how?

(I specifically didn’t want to use a checkbox in this case)

1 Like

You mean, you want to save the value to a Yes/No field?

So the expression for Field = Value would be: Field = Radiobutton’s value is “Yes”

If Yes is selected, then the Field = Yes
If No is selected, then the Field = No
If nothing is selected, then the Field = No

Or, you could split it up with two conditional actions:

Only when Radiobutton’s value is Yes: Field = Yes

and

Only when Radiobutton’s value is No: Field = No


Gaby at Coaching No Code Apps (formerly Coaching Bubble)

Courses & Products, Tutorials, Private Coaching, and High-level Development

Start Learning Today :mortar_board:

3 Likes

@romanmg Thanks. was looking for this.

I could set it up using the expression you have given.

But I don’t understand how to set up using conditions. I’ve tried to set up like below:

condition condition1

Is this correct?

Are you also wanting to save the selected value to the database in a yes/no field?

If so, then the conditions I was talking about were for the workflow, not for the element. You can remove that condition on your radio button.

In the workflow action that saves the field, the expression is: Field = Radiobutton’s value is “Yes”

3 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.