Skip to main content
Nintex Community Menu Bar

Required field List Lookup Control and Textbox Control based on condition

  • October 16, 2019
  • 5 replies
  • 40 views
  • Translate All

Forum|alt.badge.img+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

Forum|alt.badge.img+12

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

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23

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.

Translate

Forum|alt.badge.img+2
  • Author
  • October 17, 2019

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

Translate

Forum|alt.badge.img+2
  • Author
  • October 17, 2019

Hi Simon,

 

Also Rule is not working for isNullOrEmpty condition.

 

Regards,

Masroor

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23

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. 

Translate