Forum Academy Marketplace Showcase Pricing Features

How do update the value of a yes/no field

hi,

i’m relatively new to bubble so forgive me.

in my database i have a data type CAR with a CAR-CONDITION type yes/no field

on my design page i have two checkboxes, checkbox new and checkbox old

what is want is when a user is registering a car and ticks the “new” checkbox, the CAR-CONDITION field in the DB saves it as YES ( or NEW if possible)

and when the user ticks the “old” checkbox, the CAR-CONDITION field in the DB saves it as NO ( or OLD if possible)

thanks,
igho


display-new-old

Hey there @ighohouse,

You can do this by triggering a workflow to change the boolean value depending on which one you click.

hi jonny,
i’m not seeing the workflow option when


i clock on the checkbox element

It is better to use the “Radio Button” instead of the “Checkbox”, because the option must be ONE or OTHER. The checkbox will allow him to check both…

Create a data type in your database called condition (as text) and store the radio button’s value in it.

Much easier

1 Like