I was trying implement this with server-side form submission. Whenever I submit the form my page refreshes cause of default behaviour of browser. How to prevent that so that I can show last slide as successful submission of form.
Im using the same code snippet as mentioned in example demo.
That is:
index.html
custom.js
var $slideForm = $('#dataForm');
$('#dataForm').slideform({
submit: function(event, form) {
$slideForm.submit(); //not sure whether I need this or not, if this is enable it goes into loop
$slideForm.trigger('goForward');
}
});
jquery.slideform.js
$form.on('submit',function ( event ) {
if ( $options.submit ) {
event.preventDefault();
$options.submit (event, $form);
}
});
Thanks in advance