The state of buttons when clicked/pressed

so i have this issue that when i try make some condition when:
“this button is pressed” it should make a condition.. but when i use the is pressed state it only do the conditions if i hold the click.. as soon as i release the click the condiditions stops..

is there anyway i can make a static click instead..
in my case its when filling a form and they try to submit the form when required input or checkbox arent filled i want it to be able to make a red text below the missing input saying “fill this out before submitting” it just dont work with the is pressed state

First thing, in the inputs ( checkbox and dropdowns ) , check the option -
This input should not be empty :white_check_mark:

Next for persistent condition use custom states,
Set a state for the button,
Say clicked -yes/no.
When the button is clicked set the state yes and use the state value in the condition.
Ex - when the button clicked is yes
Do this.

@rishabh2810ag
thank you for a quick reponse..
what if i have a group with 2 checkboxes for instanse.. but its only required to check one of them


because right now i try out with this method.. and that is what is causing me issues when using pressed

This will not work like this then, using conditions with pressed.
You will need to have two alternating actions on button click -
On first one out condition -
When checkbox 1 value is not checked AND checkbox 2 value is not checked -
Set a state , this state will change the border color on the checkbox.
on second workflow - put condition
When checkbox 1 is checked or checkbox 2 is checked -
Continue the workflow you want.

thank you so much.. that make sense.. ill try it out

it worked out.. again thank you very much :slight_smile:

1 Like

You are welcome.

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