• Hello,

    I am converting an hand-made application to WordPress with the participants database. This is a great work, because there are more than 300 fields. But there are a lot of kind of duplicate fields. For example, one field is the user loves watching tv. And when the user says yes, I want to know what they are looking.

    At this moment I use Radio buttons with yes and no (but idealiter I want a toggle button) and a seperate question for the details. Is it possible to combine this? Maybe conditional field, so the user sees only the detail question when they answered yes, or a field like no/yes namely …

    I hope this is clear, and I like to see a solution or best practise.

    Kind regards,
    Henk Verschoor

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This can get a little complicated, but it is possible using some javascript in a custom template. The plugin doesn’t have this built in, you have to build it yourself.

    I don’t have any code examples to offer, but it’s a common implementation in forms where you have the visibility of some elements controlled by the user’s chosen value of another. jQuery makes this kind of thing easy. The complications arise when you want to add validation into the mix, but that can also be controlled with javascript.

    Using Participants Database Custom Templates

Viewing 1 replies (of 1 total)

The topic ‘Conditional fields or new field type’ is closed to new replies.