OS info
- Operating System : Windows 10.0.19044
- Wappler Version : 4.8.1
Problem description
Form fields won’t import if there is a Form Repeat inside form
Steps to reproduce
report1650534212651.zip (89.5 KB)
Form fields won’t import if there is a Form Repeat inside form
report1650534212651.zip (89.5 KB)
Can you paste your form code here please?
<form id="form_registration" is="dmx-serverconnect-form" method="post" action="/api/event/event_registration">
<div class="row">
<div class="col-12"><input id="name" name="name" type="text" class="form-control"></div>
<div class="col-12"><input id="email" name="email" type="text" class="form-control"></div>
<div class="col-12"><input id="event_uuid" name="event_uuid" type="hidden" class="form-control" dmx-bind:value="query.event_uuid"></div>
</div>
<div class="row" dmx-repeat:repeat1="sc_get_event_info.data.query_event_information.questions">
<h1>{{content}}</h1>
<div is="dmx-form-repeat" id="formRepeat1" dmx-bind:items="2">
<div class="row">
<div class="col-12"><input id="text1" name="text1" type="text" class="form-control" dmx-bind:value="name"></div>
<div class="col-12"><textarea id="text2" class="form-control" dmx-bind:value="content"></textarea></div>
<div class="col-12">
<div class="form-check">
<input class="form-check-input" type="radio" value="" id="radio1" name="radio1" dmx-bind:value="id">
<label class="form-check-label" for="radio1">Select</label>
</div>
</div>
</div>
</div>
</div>
<button id="btn1" class="btn" type="submit">Registration</button>
</form>
So you have a repeat region and then inside it a form repeat? What’s the purpose of that?
I know you would ask about this!
Idea is: Prior to register an event, attendee have to fill in list of answers to list of questions. Some of questions has several options.
But I’ve removed row repeat and it’s still the same.
So with just the form repeat component there it doesn’t work? Strange, as it works fine for me.
@Teodor I can confirm that after I’ve removed repeat and re-create Form Repeat - form import started to work.
Looks like form repeat is not working with repeats.
So what would be best approach to develop form which has dynamic amount of questions which has dynamic amount options (nested form-repeats)? Or this is not yet fully supported by Wappler yet?
@George May I please ask your attention to mentioned above?