This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

phplee
phplee

I have a AJAX form that i want to submit based on a toggle switch. however if i use this below it submits normal and not AJAX. Any ideas how i can submit an AJAX form using anything other than a submit button. thanks

 onchange="this.form.submit();"
maraerben
maraerben

I used <select>...</select> and following example worked:

<select data-request="{{ __SELF__ }}::onFilterSelect">
   <option>...</option>
   <option>...</option>
</select>

Where onFilterSelect is method in controller to process form.

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.