FORM Question

Theodoulos Iacovou asked on June 10, 2020 10:40

Hello guys,

I want , when the user will click on a button to show multiple fields under of the form.Any good solution?

Thank you!

Recent Answers


Dmitry Bastron answered on June 10, 2020 11:08

Hi Theodoulos,

What Kentico version are you using? Is it Portal Engine or MVC? Are you using Kentico Form Builder? Do you want these extra fields to be a part of your form or not? Could you please also give more context on the problem you are solving?

0 votesVote for this answer Mark as a Correct answer

Theodoulos Iacovou answered on June 10, 2020 11:18

Yes I want these extra fields to be part of the form.

I Want when the user will click on the (+) to expand new fields under of it.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on June 10, 2020 11:33

You can do this with Form Section for example: develop something like 'collapsable form section' that will have (+) icon and will be showing/hiding FormZone with your form fields by your JS/CSS. But in this case I don't think you can mark these fields as 'required'.

0 votesVote for this answer Mark as a Correct answer

Theodoulos Iacovou answered on June 10, 2020 12:17

Does the Form control provides this option?

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on June 10, 2020 12:43

Ok, there is another option then: you can use standard Kentico checkbox (with something like 'click here to show additional fields') or develop your (+) as a custom form control of boolean type with behavior similar to checkbox but your styles. For other optional form components you can set a visibility condition depending on your checkbox value. In this case, when the user checks the checkbox (or clocks on your plus control) the value of it will become 'true' and other dependant form controls will apeear.

0 votesVote for this answer Mark as a Correct answer

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