Masroor
Scholar

Required field List Lookup Control and Textbox Control based on condition

Jump to solution

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.

0 Kudos
Reply
5 Replies
kunalpatel
Collaborator

Re: Required field List Lookup Control and Textbox Control based on condition

Jump to solution

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

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Required field List Lookup Control and Textbox Control based on condition

Jump to solution

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.

View solution in original post

0 Kudos
Reply
Masroor
Scholar

Re: Required field List Lookup Control and Textbox Control based on condition

Jump to solution

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

0 Kudos
Reply
Masroor
Scholar

Re: Required field List Lookup Control and Textbox Control based on condition

Jump to solution

Hi Simon,

 

Also Rule is not working for isNullOrEmpty condition.

 

Regards,

Masroor

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Required field List Lookup Control and Textbox Control based on condition

Jump to solution

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. 

0 Kudos
Reply