I had an email validation up and working on the client side, and it has recently just stopped working even though I have not changed the code in that part of my app for ages.
The structure of the code is described below - it is slightly unconventional, but it certainly used to work.
Is this a bug that came into Wappler in a recent release?
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
I have a repeat children:
<div id="rg_attendees" is="dmx-repeat" key="attendee" dmx-bind:repeat="attendees.data" class="">
Inside that I have a hidden form:
<form id="get_contact_activity" method="post" is="dmx-serverconnect-form" action="dmxConnect/api/form/form_get_contact_activity.php"
dmx-on:success="flow_start_booking.run({})">
<input id="h_contact_email" name="email" class="form-control" dmx-bind:value="i_contact_email.value" type="hidden" required="">
<input id="h_contact_attendee_number" name="attendee_number" class="form-control" dmx-bind:value="$id?$id:1" type="hidden">
<input id="h_contact_attendee_count" name="attendee_count" class="form-control" dmx-bind:value="attendees.data.count()" type="hidden">
<input id="h_contact_in_test_mode" name="in_test_mode" class="form-control" dmx-bind:value="in_test_mode.value" type="hidden">
</form>
And the Email field and submit buttons are outside of the form (but inside the repeat)
<input type="text" class="form-control input_form" id="i_contact_email" name="email" aria-describedby="input1_help" placeholder="" dmx-bind:disabled="(show_contact_details == 1)" style=""
data-msg-email="Please enter a valid email address" data-rule-email="" dmx-bind:value="email">
</div>
<button id="b_start_booking" class="btn btn-success" dmx-on:click="this_attendee_number.setValue($id);get_contact_activity.submit();scroll.goto('#a_contact_details_'+$id)"
dmx-show="(show_booking_details==0) && (form_mode.value=='event')" dmx-on:keydown.enter="this_attendee_number.setValue($id);get_contact_activity.submit();scroll.goto('#a_contact_details_'+$id)"
dmx-bind:disabled="(i_contact_email.invalid) || (i_contact_email.value.length()==0)">Start
<span dmx-show="browser.viewport.width>576">Booking</span></button>
I can PM a link for you to test it with if that will help!
Community Page
Last updated:
Last updated: