Skip to main content
Nintex Community Menu Bar

Experts,

 

I have 2 controls(Drop Down List and Text Box) on my view, And drop down contains values X and Y.

 

I need to validate(Pattern Validation) the text box if the drop down has value X, And pattern is not suppose to applicable for text box if the drop down has value Y.

 

Could you please give an idea how do i can achive this?

 

Regards

Amar

Dear,

Patterns are set at design time and couldnt be changed at runtime .
So the best solution for this , is to add 2 textboxes , txtbox1 pattern is applicable for value x , and txtbox2 pattern is applicable for value y , and on drop down change u will need to show/hide the right text box.

Hope it helps!
Regards.

Hi Amar,

 

Maybe something similar to this?

 

 

you can set this on a data label and add a rule to check the vlaue of the data label

now if the dropdown has X, the expression will return True or False otherwise it will return the value of the textbox because the drop down list value is not X

 

I would add the following rule to validate the user entry when the value is changed in the textbox

 

When textbox is changed

  

If Data label equals false

Inform the user that the value doesn't match the pattern

 

This depends on your requirements, What I mean is that you can workaround this using expressions.

 

Hope it helps

 


Hi Mustafa,
Can you please explain further. I am too having similar issue

Reply