Disable a rule being triggered when the form initialises

  • 14 March 2016
  • 4 replies
  • 0 views

Badge +2

We have a nice rule on a drop down list that shows and hides relevant view controls dependent on the value selected from the list. The rule also includes actions to enable, disable and clear certain fields dependent on the selection.

 

The rule is triggered by the event ‘when a control (the dropdown) on the view is changed. This means that whenever a value is loaded into the field the rule is triggered for example when the form is initializing and loading from an item reference. We don’t want this to happen, we only want it to trigger if the user manually changes the value by selecting from the drop down. Is there any way to prevent the rule triggering when the field is changed by a load method?  

 

 

 

TIA

Mevan


4 replies

Userlevel 1
Badge +8

Hi MKatten

 

You could add a condition to the rule to check the drop down has a value before you execute the hide/disable actions. This will only work if you have not un-checked the "Allow Empty Selection" propert y for your drop down list.

Badge +2

Hi Andrew

 

Thank you for coming back. We want the rules to work when a user changes the values manually but to not work when the form iniatiles and a load method is used as we are bringing back saved information therefore we do not want the rules to be triggered unless the user manually changes the value.

Userlevel 3
Badge +8
Dear ,

If i understood u right , i think u could do it by using data label flag , add data label flag=0 , and add a rule , make it last rule in form initializing , then u could this flag in an advanced condition before ur rule , if flag=1 then do ur rules ,
In this way ur rule wont be executed in form initializing , but it will be executed after form is done initializing (manually by the user)

Hope it help!
Regards.
Badge +2

Hi Ahmad

 

We used a similar concept using a hidden field and it works great! Thank you for your help!

Mevan

Reply