Jump to content

Recommended Posts

Posted
$(this).blestaRequest(
  'POST', 
  '/uri/path/to/post/to/', 
  $('#my-form').serialize(),
  function (data) {
	// Do something on success
  },
  function (data) {
	// Do something on error 
  },
  { dataType: 'json' }
);

 

Posted

A CSRF token is generated when the form is created using the Form component. If you're doing everything in JS, you need to fetch the CSRF token, either from another form on the page, or via an AJAX request that returns the CSRF token, and then add it to your form in the proper format.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...