To show and hide the container onchange of a dropdown value.

0
Hi friends, I am having a drop down field with a,b,c as values. And value a is selected by default. Only when if I change value a to any other value in drop down, I should get a file upload widget else it should get hided in the form. Thanks in advance..
asked
1 answers
2

There are two ways to accomplish this:

The easy way is if your drop down contains an enumeration, then you can make the file upload widget conditionally visible based on the value of the enumeration.

If you have a reference to an object, you can use an on change microflow on the reference selector. First, add a boolean to the entity to enable you to make the file upload widget conditionally visible. Then, in the on change microflow, if the value of the drop down has been changed, you can set a boolean to true, to show the file upload widget.

answered