Forums

How to dynamically add Height and Width fields on button click in ChronoForms V8?

sirdna777 7d ago

Hello ChronoForms Community,

I’m working on a form in ChronoForms V8 with two text input fields: Height and Width. I want to add a button that, when clicked, dynamically adds another set of Height and Width fields below the existing ones—so users can input multiple measurements.

The idea is similar to how forum posts let you add more attachments by pressing an “Add attachment” button, and a new attachment input field appears. I’d like the same behavior but for my height and width fields.

I’m hoping this is possible to achieve via the admin panel.

To help explain my idea better, I’ve attached a picture showing what I want to achieve.

If anyone can share an example, tutorial, or guide me on how to do this with ChronoForms features, I’d be very grateful!

Thank you in advance!

Best regards

Andris

extrafileds.jpg
Max_admin 1d ago
Answer

Hi Andris

You need to use the Repeater area for this

You add your fields inside the repeater and change their "field name" too in order to receive the fields values correctly

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.