Home > Forum > Forms > Dynamically hide/show fields in a form

Dynamically hide/show fields in a form
0

Maybe I missed something but I'm struggling on a form. On the form I have 2 autocomplete choice fields that are related.
First I would like to hide the second field.
The first field a category has to be selected (1-5), and when someone selects Category 1, the second field should appear dynamically to make a selection.

Now I added a rule in "Visibility restriction in form", see picture. I runs but it seems only on form load and not dynamically.

MVP

Hi Arno,

it's the way it is implemented. It's not dynamic, you can use form rules though to hide/show depending fields.

Quote:
The visibility settings are not dynamic and only activate when loading the form. To see changes on the form depending on the defined rules, the form should be saved first. Dynamic changes to the visibility of the form field can be configured in the “Style and behavior” tab.

https://community.webcon.com/community.webcon.com/public/posts/post/implementation-handbook-form-fields-visibility-and-restrictions/176/3#a5

What's dynamic though is the "required restriction".
If you define a rule for the required restriction (1).
You have to select "refresh default values" on the referenced fields (2)

If you wondered how I found this entry, I've used an external search engine:)
https://community.webcon.com/forum/thread/695

Best regards,
Daniel

In reply to: Daniel Krüger (Cosmo Consult)

Hi Arno,

it's the way it is implemented. It's not dynamic, you can use form rules though to hide/show depending fields.

Quote:
The visibility settings are not dynamic and only activate when loading the form. To see changes on the form depending on the defined rules, the form should be saved first. Dynamic changes to the visibility of the form field can be configured in the “Style and behavior” tab.

https://community.webcon.com/community.webcon.com/public/posts/post/implementation-handbook-form-fields-visibility-and-restrictions/176/3#a5

What's dynamic though is the "required restriction".
If you define a rule for the required restriction (1).
You have to select "refresh default values" on the referenced fields (2)

If you wondered how I found this entry, I've used an external search engine:)
https://community.webcon.com/forum/thread/695

Best regards,
Daniel

Thanks Daniel for the quick response. Changing visibility works as you described. Also I needed to hide the field when the value was still empty and did that in form behavior with a form rule.

Kind regards,

Arno

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.