Skip to main content

Hi all,

 

First time user, first time poster lol.

 

I am using K2 designer and have a control of Product type, it has 2 entries A and B.

 

I want to set another control (temperature) to be greater than or equal to 4 and less than or equla to 15 if "A" is selected.

 

I want to set the same control (temperature) to be greater than or equal to 0 and less than or equla to 5 if "B" is selected.

 

Any help would be greatly appreciated!!!

Are you saying that you want to validate user input is between these ranges based on whether A or B is chosen.

 

If this is the case there are a lot of complicated ways to do this with regex expressions but the simplest I can think of is to place a rule on the text box that when it changes you check the values and display a message. You can use an advanced condition using the values from both boxes.

 

To make it so the form cannot be sumitted with an invalid value you can disable the submit button unless the values are in the correct range. I am attaching a word document with some print screens for the rules.

 

There are other options that would work but they are more complicated.


Thanks so much for your response MickiC.

 

I did exactly what you said and it works great!

 

Really appreciate your time


Reply