• Hey folks,

    Here is the issue I am having.

    At the bottom of our home page we have a form, and when a user submits the form, sometimes it will simply refresh the page and the form will be blank, no lead is created in salesforce.

    And at other times everything works fine, the page refreshes and the user sees “Success”, lead IS created in Salesforce

    I cannot figure out any reason behind these random failures. Any help would be very much appreciated.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    If it’s seemingly random, it’s very difficult for me to troubleshoot — as it works, so the plugin is doing it’s job.

    If you can determine what causes the failure (e.g. browser, certain data in the form, a javascript error) I may be able to help more.

    If you’d like to hire me to troubleshoot your site you can do that here:
    https://luminfire.com/support/premium-plugin-support/

    Thread Starter perkinschris

    (@perkinschris)

    It seems as though some times when submitting the form, that it ignores the retURL and simply refreshes the whole page, when this happens there is no lead generated and no error message.

    Other times it does redirect to my specified retURL and a lead IS created. Does this information help narrow down a possible cause? Could it be a caching issue somehow?

    Could something like the following be used to force the retURL ?

    }

    // salesforce_w2l_returl_{Form ID}
    //add_filter( ‘salesforce_w2l_returl_1’, ‘salesforce_w2l_returl_1_tester_example’, 10, 1 );
    function salesforce_w2l_returl_1_tester_example( $returl ){

    return ‘https://123.com’;

    }

    Plugin Author Nick Ciske

    (@nickciske)

    It seems as though some times when submitting the form, that it ignores the retURL and simply refreshes the whole page,

    This is likely due to a Javascript error on the page breaking the redirect.

    when this happens there is no lead generated and no error message.

    Turn on debugging and provide an email to see if Salesforce sends an error report as to why it failed to add the lead.

    Other times it does redirect to my specified retURL and a lead IS created. Does this information help narrow down a possible cause? Could it be a caching issue somehow?

    Somewhat, but as I said before until we can understand why, the path to fix could be many things.

    Thread Starter perkinschris

    (@perkinschris)

    Thank’s for the quick reply, I will try debugging ?? Appreciate the help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not getting success message, reloads page to blank form’ is closed to new replies.