Skip to main content
Nintex Community Menu Bar

Disable button if Multiple input is empty

  • November 25, 2020
  • 5 replies
  • 7 views

Forum|alt.badge.img+1

I'm trying to validate that all required fields are filled out before enabling the Next >> button. 

On the Next button, I created a formatting rule with the following condition: 

 

The problem with this is that only field2 disables the button when empty, and nothing happens when field1 is empty. 

Question: How can I use isNullOrEmpty() option for a multiple fields. 

5 replies

Forum|alt.badge.img+11
  • Scholar
  • November 25, 2020

@cloudysunny You can try isNullOrEmpty(Field1)||isNullOrEmpty(field2)  or isNullOrEmpty(Field1)&&isNullOrEmpty(field2)


Forum|alt.badge.img+1
  • Author
  • November 25, 2020
@Nunezma. I used this as per your suggestion, and it worked like charm. isNullOrEmpty(field1)||isNullOrEmpty(field2). Thanks a lot. I do however, have a follow-up question. Now, I want to hide a label once all the fields are filled out.
example: My label reads "Please fill out field1 and field2. I'm using this, and is not working !isNullOrEmpty(field1)||!isNullOrEmpty(field2)

Forum|alt.badge.img+1
  • Author
  • November 25, 2020
I figure it out with (!IsNullOrEmpty(field1)&&!IsNullOrEmpty(field2)) Thanks again.

Forum|alt.badge.img+11
  • Scholar
  • November 25, 2020

@cloudysunny  Try:

 

not(isNullOrEmpty(nameoffield))


Forum|alt.badge.img+1
  • Author
  • November 26, 2020
I just tested this and it worked as well. Thanks for such a great help 🙂