On-Line Form with Custom Fields

Aleksandar Nikolić asked on February 2, 2018 08:58

Guys,

Is it possible to make a contact form but when somebody choose some option in drop-down field, to show or hide some other fields?

Thanks

Correct Answer

Matt Nield answered on February 2, 2018 09:46

Hi, yes, that's totally possible. You can use the visibility condition on the fields properties to select type the value of another field on the form. This in combination with the Depends on another field flag should do what you need.


Edit: I thought an example might help.

  1. Create a new form with the following two fields:
  2. FieldA is a Text field using a Drop-down list form control. It has its 'Required' flag checked and its 'Has depending fields' flag is checked. Its options in the Data source are:
    • ;select
    • o1;Option 1
    • o2;Option 2
    • o3:Other
  3. FieldBis a Text field using a Text box form control. It has its 'Required' flag checked and its 'Depends on another field' flag checked. The visibility condition is set to FieldA.Value == "o3".

In this setup a user must select a value for **FieldA, but then they select 'Other', they will also see FieldB and must provide a value for it.

I hope that helps :)

1 votesVote for this answer Unmark Correct answer

Recent Answers


Aleksandar Nikolić answered on February 2, 2018 11:39

Thank you very very much!

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on February 3, 2018 17:00

Just adding for reference, this article may be handy too: How to work with depending fields

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.