• Resolved kellybleck

    (@kellybleck)


    I would like to prevent the default action of scrolling back to the form after a user has hit submit and hasn’t filled out required fields. My form is at the top of my page, with a fixed header, so the scroll to anchor actually has the effect of hiding the top portion of the form behind the fixed header.

    Is there a way to override this, or change the scroll to setting?

    Thanks!
    Kelly

    https://ww.wp.xz.cn/plugins/salesforce-wordpress-to-lead/

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

    (@nickciske)

    // Remove Form Action
    add_filter( 'salesforce_w2l_form_action', 'salesforce_w2l_form_action_example', 10, 1 );
    function salesforce_w2l_form_action_example(  $action ){
    	return '';
    }
    Thread Starter kellybleck

    (@kellybleck)

    That works great! Thanks so much Nick.
    Kelly

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Prevent scroll to form after form submit’ is closed to new replies.