How can i hide/show multi save mulitfields

Show or hide multi-save multifield elements based on user selection.

Overview

The issue occurs when using illegal HTML characters like brackets in field IDs, which prevents JavaScript from targeting the elements correctly.
Replace the illegal characters in the field IDs with underscores, ensuring the IDs and names remain synchronized, then apply show/hide actions to the containing element.

Answered
ChronoForms v5
wi wiva 26 Feb, 2017
Hello,

I want to hide/show some multifield elements based on user choice like in "demo fields events"
The fields are also multisave: FIELD ID = reg[1][participant]

Is it possible to show/hide these multi save fields

Thanks
Gr GreyHead 26 Feb, 2017
Answer
Hi Wiva,

First, IDs should not use [] as that is illegal html (for names it is fine) so change those to e.g. reg_1_participant and I would keep the numbers linked so that the id and name use the same number (they are different in your image).

Then you can show/hide the containing element.

Bob
wi wiva 26 Feb, 2017
Hello Bob

Yes, It's working now properly

Thanks Bob
This topic is locked and no more replies can be posted.