Skip to content

isaFormRepeater does not send select element name value via ajax request #18

@udemethegrtman

Description

@udemethegrtman

Thanks for your plugin, but i have an issue with it

when i added this

<select id="parent_field_id[1][test_sub1]" name="parent_field_id[1][test_sub1]" class="form-control repeat-el" required>
	<option> {{ ( isset($parentInfo) ) ? $parentInfo->parent_title : 'Choose' }} </option>
	<option value="Mr">Mr</option>
	<option value="Mrs">Mrs</option>
	<option value="Dr">Dr</option>
	<option value="Ms">Ms</option>
	<option value="Master">Master</option>
</select>
<select id="parent_field_id[1][test_sub5]" name="parent_field_id[1][test_sub5]" class="form-control up_type repeat-el" required>
	<option> {{ ( isset($parentInfo) ) ? $parentInfo->relationship : 'Choose' }} </option>
	<option value="Mother">Mother</option>
	<option value="Father">Father</option>
	<option value="Uncle">Uncle</option>
	<option value="Aunty">Aunty</option>
	<option value="Nephew">Nephew</option>
	<option value="Brother">Brother</option>
	<option value="Sister">Sister</option>
	<option value="Guardian"> Guardian </option>
</select>

it repeated the parent elements, but when i send an ajax request, the first parent element displayed

parent_field_id[1][test_sub1]: Choose
parent_field_id[1][test_sub2]:
parent_field_id[1][test_sub3]:
parent_field_id[1][test_sub4]:
parent_field_id[1][test_sub5]: Choose
parent_field_id[1][test_sub6]:
parent_field_id[1][test_sub7]:
parent_field_id[1][test_sub8]:
parent_field_id[1][test_sub9]:
parent_field_id[1][test_sub10]:

but i when i click the add button the cloned form does not display the select element name value.

parent_field_id[2][test_sub2]:
parent_field_id[2][test_sub3]:
parent_field_id[2][test_sub4]:
parent_field_id[2][test_sub6]:
parent_field_id[2][test_sub7]:
parent_field_id[2][test_sub8]:
parent_field_id[2][test_sub9]:
parent_field_id[2][test_sub10]:

Where "[test_sub1]" and "[test_sub5]" are select elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions