I was wondering if it is possible to have a conditional field that displays if a previous field is not empty; but stay hidden until the user fills the field.
For example:
Field company: empty - Field jobTitle (not shown)
Field company: Umbraco - Field jobTitle can then be displayed.
I have been trying, but I can't seem to figure it out.
Form conditional fields when empty
Good afternoon everybody.
I was wondering if it is possible to have a conditional field that displays if a previous field is not empty; but stay hidden until the user fills the field.
For example:
Field company: empty - Field jobTitle (not shown)
Field company: Umbraco - Field jobTitle can then be displayed.
I have been trying, but I can't seem to figure it out.
Thank you very much!!
-Adri
Does this work?
Hey Ultradata.
It doesn't =( I also tried it the other way around "show if is not " and then I left the field empty, no value.
Neither options works.
Did you find a solution to this issue? I'm running into the same issue right now, would love to know how you solved it!
Hey Sjoerd, unfortunately I didn't. I left the second field visible for now =(
I got it working! Did you use a custom template for UmbracoForms? We do, and we didn't include the following:
I noticed in the validation scripts that it look for that class when it initializes the conditional logic. Without it it won't work for me.
Now I can use the following condition:
And it shows the field whether or not the hidden field 'Product key' contains a value.
Hope this helps!
is working on a reply...