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!
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?
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.
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'.
Does the Form control provides this option?
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.
Please, sign in to be able to submit a new answer.