Validation check based on the list control selection

  • 26 November 2014
  • 1 reply
  • 2 views

Badge +6

Hi All

 

I have 1 drop down list and 3 text boxes on one of my view. If the ddl contains ‘x’ value the 3 text boxes has to validate whether thus are filled or not. If the ddl contains ‘y’ there is no need of validation.

 

Can you please suggest me how can I achieve this type validation at the time of submit click.

 

Regards

Srinivas Kondapalli

 


1 reply

Badge +10

Hi Srinivas,

 

I would suggest you create a hidden button and create a rule on the OnClick rule for the button which will check the validations.

Place a "when this form passes validation" condition in the rule, select that all 3 text boxes should be validated and then use a blank Transfer Data action (this is just so you can complete the rule) as the action for the rule.

Then create a new rule on the  OnChange rule on the Drop-down list control.

Configure the conditions of this rule to check whether the drop-down list control contains x.

In the Action for that condition have it Execute another rule and selec the onClick event of the hidden button.

 

At runtime when the drop-down list is changed, it will evaluate the value and if the value is 'x' it will validate the text boxes.

 

Let us know if this works.

 

Regards,

JohanL

 

Reply