Hiding / showing field based on tickmark?

How to show or hide form fields based on dropdown selection.

Overview

The issue occurs when trying to conditionally display form elements, like a petrol usage field, depending on a selection without using multiple pages.
Use the Events tab on the dropdown element to set up a Show/Hide Parent action, which will hide or reveal the target field and its label based on the chosen option.

Answered
fr fribse 22 Apr, 2016
Is it possible to have a dropdown that shows or hides another field? And if so, how?

I'm trying to build a rather complex form that will calculate our diving trips expenses.
And depending on the boat being a 2-stroke or a 4-stroke i need to ask for how many liters of petrol was used.
I don't want it to be a multipage form, because then nobody will use it.

I've built this in Excel, but that of course requires the user to have excel on his computer, so that is not optimal.

I also need to be able to write how many participants were on the trip, and then it should show fields for entering their names depending on the amount, is that possible? And if so how do I do that?
Gr GreyHead 22 Apr, 2016
Answer
1 Likes
Hi frisbe,

You can use the Events tab in your drop-down to Hide/Show other form elements. Usually Show/Hide Parent is the correct option to use as that hides the form element and the label, etc.

Bob
fr fribse 22 Apr, 2016
I see, that is bleeding brilliant!
One thing I don't understand though, I have a dropdown, but it shows all the items with checkmarks? I thought it should show a dropdown, so one could only select one of them?
fr fribse 22 Apr, 2016
Hmm, I must've selected the wrong one, I just replaced it, and now it looks fine...
This topic is locked and no more replies can be posted.