Umbraco Forms send using ajax
# help-with-umbraco
s
Hi. I am using Umbraco 13 and the Umbraco Forms addon. I have a page where we render the form in a slide out modal. Ideally when I submit the form I would like it to process the form using ajax and update the modal without refreshing the page. I have tried this a number of ways by trying to hook into the form submit method but nothing seems to work. has anyone got this working? As a backup plan I thought I would allow the form to submit as usual, reload the page and display a success message popup. However the page this is on is using a content finder. And it seems like the default workflow for the form is returning the current umbraco page rather than redirecting back to the URL. This means that the page doesn't work as it relies on the URL to render the content correctly. Is there a way to remove the default "Submit message / Go to page" workflow and replace it with my own? Thanks.
l
I’m away from my computer for the evening, but you could use the IFormService and IRecordService to manually add to the form I would guess, if possible. Might be a more efficient way however.
s
Hi, thanks for replying. I think those services are used more for handling the forms data on the server side. I need to basically stop the form refreshing the page when it is submitted.
21 Views