Having Troubles Submitting a Form Within a Repeat

I’m going a bit crazy here trying to do a form within a repeat.

The form has not submit button, it just does a submit on:updated. I know this method works outside of the repeat!

When the textarea value changes, it is not submitting the form.

@Teodor, would you be able to tell me what I am doing wrong?

Here is what I have:

<div dmx-repeat:rg_bookings_activity="attendees_activity.data.attendees">
	<dmx-value id="attendee_id" dmx-bind:value="id"></dmx-value>
	<dmx-value id="attendee_notes" dmx-bind:value="notes"></dmx-value>

    <form dmx-bind:id="f_attendee_notes_{{attendee_id.value}}" method="post" is="dmx-serverconnect-form" action="dmxConnect/api/bookings/update_booking_item_notes.php" dmx-populate="attendees_activity.data.attendees">
	    <input dmx-bind:id="i_attendee_notes_id_{{attendee_id.value}}" name="id" dmx-bind:value="id" type="hidden" class="form-control">
	    <textarea dmx-bind:id="i_attendee_notes_{{attendee_id.value}}" class="p-1 form-control p_table c_right7 fs_80" name="notes" dmx-bind:value="attendee_notes.value" dmx-on:updated.debounce:1000="f_attendee_notes_{{attendee_id.value}}.submit()" dmx-bind:rows="1"></textarea>
    </form>
</div>

452


Community Page
Last updated: