Skip to main content
September 7, 2022
Question

disable button when the textfield is required

  • September 7, 2022
  • 8 replies
  • 0 views

its posible disable a button when i have a form, with some textfields required? i have a form like this. 

when I complete the form, the blue button should be enabled, I have local variables where I store my data.

another thing we tried to do was to do it with if, but there seems to be a hierarchy.

thanks you!

8 replies

stefanhelzle0001
Brainy
September 8, 2022

The only thing you need to do, is to add a condition to the "disabled" parameter of that button. Use or() and and() to combine multiple conditions.

What kind of hierarchy do you mean?

September 8, 2022

You can create multiple local variable for multiple forms or create single variable and pass it to all the forms to fetch the data from those and then on button disable configuration you can use or/And condition based on the requriement.

harshitb6843
September 8, 2022

Hi Deepak. 

I appreciate you spoon-feeding the people with code but please also understand that by doing so, you are not letting them play with the code and understand how things logically work. That way, you're only helping you increase your numbers but not really helping the community members understand Appian better. 

September 8, 2022

I am so sorry, but could you please let me know about regarding what number you are talking about?

you're only helping you increase your numbers