SarahEldurini

5 years agoQrew Trainee

# Dynamic Form Rules

Hello, I have a form where a user has to insert the number of products (1-3), then, if the user inserts 1, ONE row of fields of the products details should show and user will have to fill (Model1, Ex...

- 5 years agoHello Sarah,

Don has a great point in regard to the architecture and if you can do that , you likely should. But if not, you will need to change the way you are thinking about the rules. Think about what conditions would fit into one rule for show/hide on each field. There are many ways to do this. Here is one example that should work if I am understanding your requirements correctly.

Rule #1

When # of products - is equal to - 1 OR 2 OR 3

show model 1

show Expiry 1

show status 1

Rule #2

When # of products - is equal to - 2 OR 3

show model 2 etc.

Rule #3

When # of products - is equal to - 3

show model3 etc.

This way, you are only applying the show/hide action once per field and you will not receive the error and the correct number of rows will appear based on the # of products they are entering.

------------------------------

Brandon Drake

JHI Group

Monroeville, OH

------------------------------