I’ve got several webforms where I would like to hide file fields untill they are needed (that is, when the previous radio button is chosen as ‘Yes’).
At this moment I have a layout rule on a two optioned radiobutton ‘Yes’ and ‘No’ with default value blank. In case the user has not yet selected a radio button, I want the file field to be hidden. If he choses ‘Yes’ it needs to be shown and required, and if the user choses ‘No’ I need it to remain hidden.
I am able to insert rules which cause the field to (dis)appear depending on the ‘Yes’ or ‘No’, but I am unable to change the default of the file field into hidden while keeping the If>Yes rule in place. I’ve tried this with an if>’ ’ then hide field…, but this does not seems to be working when opening the webform using the link (works only after the user changes the value of another field in the webform)
Is there a way to hide a file field untill it is triggered by a layout rule?