How to set a field value without User input

Hi everyone,

I am looking for a way to 1/ change the value of a User’s field 2/ when a button is clicked 3/ without refering to any input.

To be more specific: I would like to attribute to Users who are signing up through a specific path, a role value that is automatically set for them when signing in without requiring them to fill a specific input (like a dropdown where they could chose their role).

I guess this is pretty easy to do but I did not find any tutorial or post on that and could not find an option in Bubble that works for that.

(I already found a solution that would be to set a yes / no value to my role field when the Users is signing in but as I have more than 2 possible roles this is not ideal.)

Thank you very much for your help.

Hi @pa.billet,
This is how I do it… add a new Group’s custom state, for example, the Group on where that input box is located. Then you set the that input box’s Initial Content to the new custom state. In the workflow, you can then use Element Actions -> Set state that new custom state.

Hope it works for you.

Cheers,
hanitow