Form Rules

  • 5 August 2019
  • 1 reply
  • 0 views

Badge +3

Hello,

 

I need a little help with writing a particular form rule. 

 

Here is the scenario:

 

I have 4 controls involved.

"machine type" - Choices: Portable or Stationary

"pre-startup" - Choices: Yes or No

"Pre-Startup Options Portable"

Pre-Startup Options Stationary"

 

If a user selects Portable and Pre-Startup as Yes, I want it to populate the "Pre-Startup Options Portable" and the same thing for Stationary. 

 

All rules I have written in the past, I have used (control name) != "(choice)"

 

But, since this requires two controls to determine if it should show the control or not, is there an option to add an & in the code for the rule? I tried that but it did not seem to work. 

 

Any help is greatly appreciated. 

 


1 reply

Userlevel 6
Badge +22

Hi,

Yes you can use the operator && for and or use the runtime function and() aslo.

I put together a sample form for your example.  I only used 3 controls and just made the third display the required outcome.

Reply