Frontend ajax streams forms
samharrison7 - 10 months ago
I'm trying to create an ajax form (in a modal) for a stream on the frontend and am having some problems. If I set the
$ajax field to true in my FormBuilder, then the action URL is just set to my base URL, but if I set it to false and build the ajax call myself, I'm not sure what URL to post to. Posting to the default form URL returns a full HTML page (with success/error messages set), but in an ideal case a JSON response with success/failure status would returned. Is there any magic URL that will return that?