Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello, Umbracians.
I want to create some forms and then submit data in async way to my SurfaceController, but I don't want to use a standard BeginUmbracoForm() method because It is not so understandeble for other team and frontend-developers.
SurfaceController
BeginUmbracoForm()
Here is my code:
<form id="feedbackForm" action="@Url.SurfaceAction("HandleSubmitForm", "ContactForm")" method="post" enctype="multipart/form-data"> @Html.AntiForgeryToken() <input type="text" name="name" value="nameValue" /> <input type="email" name="email" value="[email protected]" /> <input type="text" name="message" value="messageValue" /> <button type="submit">Submit</button> </form>
And script:
$("#feedbackForm").on("submit", function (e) { e.preventDefault(); $.ajax({ type: "POST", data: $(this).serialize() }); });
In this case I am not entering my ContactFormController, but getting a succesfull response with current page.
ContactFormController
Thanks
I found something in Umbraco Git, and it looks like I can't get a encrypted route because it is an internal method :(
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to make safe form without BeginUmbracoForm() using?
Hello, Umbracians.
I want to create some forms and then submit data in async way to my
SurfaceController
, but I don't want to use a standardBeginUmbracoForm()
method because It is not so understandeble for other team and frontend-developers.Here is my code:
And script:
In this case I am not entering my
ContactFormController
, but getting a succesfull response with current page.Thanks
I found something in Umbraco Git, and it looks like I can't get a encrypted route because it is an internal method :(
is working on a reply...