4

Working with multi-site single instance Sitecore 8.1 U3 solution and WFFM of the same version, I have a page at https://site//contact-us/ which contains an enquiry form configured to redirect to a success page upon submitting. The success page is located underneath the form page. i.e:

  • Form page location: sitecore/content/site/home/contactus
  • Success page location: sitecore/content/site/home/contactus/thankyou
  • Form location: sitecore/system/modules/Web Forms for Marketers/site/form

However the current behaviour is when the submit button is clicked the form page reloads, there is a delay for a good few seconds, then the success page is loaded.

Below is the log of the browser console upon submitting the form:

Navigated to https://site//contact-us/
Navigated to https://site//Contact-us/Thank-You

Any idea what's the reason behind this reload?

8
  • 2
    Can you confirm if the field "Is Ajax Mvc Form" field is checked on the form? Jan 9, 2017 at 19:19
  • 1
    Try modifying ViewsFormEditorTemplatesFormModel.cshtml file and replace if (Model.IsAjaxMvcForm) with if (Model.IsAjaxMvcForm && !Model.SuccessRedirect) Jan 9, 2017 at 19:22
  • Clean(ish) install of Sitecore and WFFM? Any customisations?
    – jammykam
    Jan 9, 2017 at 19:34
  • I'll be damned ticking the box actually solved the issue :p. Even though I do remember testing it previously, went back to try that again now did it in two different environments and the extra reload is gone. Are there any implications to checking this box on the form?
    – Jay
    Jan 9, 2017 at 19:36
  • A few but nothing relating to successAction, using the default Sitecore.Forms.Core library for those in Sitecore.Forms.Configs. Also it seems ticking the Is Ajax Mvc Form takes away the additional page reload. are there any implications to leaving that ticked on all the forms?
    – Jay
    Jan 9, 2017 at 19:41

1 Answer 1

0

It's been confirmed. Ticking the Is Ajax MVC Form check box on the form itself gets rid of the extraneous reload upon submitting the form.

However the delay between submitting and getting a response might still be an issue and would need to be addressed separately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.