Required field List Lookup Control and Textbox Control based on condition

  • 16 October 2019
  • 5 replies
  • 7 views

Badge +2

Dears,

I have one List Lookup Control & Two Textbox(single line of text) controls in the nintex form.Now my requirement is 1)if user select any value from List Lookup control then two text boxes control should become required field.And2) when user enter value for these two textboxes then List Lookup Control become required field.condition is vice versa. if user don't select any value from list lookup control & don't enter any values for these two textboxes & when user save the form then there will be no validation for required field.In short validation will depend only on condition.

Please help me to fix this requirement.


5 replies

Badge +12

@Masroor ......use isnullorempty() function for your rules using If statement.

Userlevel 6
Badge +22

Hi,

 

The rule on the Lookup control would look like:

not(and(isNullOrEmpty(Text1),isNullOrEmpty(Text2)))

The rule applied to both the text boxes would look like:

not(isNullOrEmpty(choice1))

I have put togther a sample responsive form.  I used a choice instead of a lookup but the concept is the same.

Badge +2

Hi Simon,

Thanks for your reply.but sorry to say that i implemented your rule.But it didn't work.

Rule is not working only due to "not" condition. I am working on classic form.

Please suggest me what should i do.

waiting for your positive response.

Regards,

Masroor

Badge +2

Hi Simon,

 

Also Rule is not working for isNullOrEmpty condition.

 

Regards,

Masroor

Userlevel 6
Badge +22

I never provide a solution without testing it first and if I do I state that I haven’t tested it. 

Please test the working responsive form and then transfer what you see to a classic form. 

Reply