Support » Plugin: Real Time Validation for Gravity Forms » offset on the confirmation anchor

  • Resolved phj123

    (@phj123)


    Is it possible to set an offset on the confirmation anchor?

    Now if someone hits the Send/Submit button the form scrolls up but part is hidden underneath my plugin fixed header.

    Hope this is possible somehow or maybe you can add this option to the plugin.

    Would be a great benefit because a lot of people use fixed headers there days.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Amritansh Trivedi

    (@amritanshatwisetr)

    Hi @phj123,

    I understand your issue, but could you give us an URL of your site, where we can see the issue live?

    Although It’s not in the current version, we will try and provide you some way to handle this in the upcoming version.

    Thanks!

    That sounds great!

    Just give any test site a fixed header and you can see this behavior (of course the page has to be longer than the screen, there has to be a scroll to see the behavior)

    Can’t wait till the update, this would be a great option! 😀

    • This reply was modified 1 year, 9 months ago by  phj123.
    • This reply was modified 1 year, 9 months ago by  phj123.
    Plugin Author Amritansh Trivedi

    (@amritanshatwisetr)

    Hi @phj123,

    We just pushed a new version of the plugin.

    We introduced a way to modify the current offset by the js callback.

    Here is the snippet you need to enqueue over your page to customize the offset.

    jQuery(window).load(function(){
       window.lv_offset = function( currentOffset) {
           return currentOffset - (x); // replace x with the height of the sticky header
       }; 
    });

    Try this snippet & let us know if that works.

    Thanks!

    WoW Awesome it is working perfectly, Thank you for this update!

    A final question, is it also possible to use a rem instead of px offset?

    Plugin Author Amritansh Trivedi

    (@amritanshatwisetr)

    Hi @phj123,

    Glad that it worked!

    We use jQuery animate to scroll smoothly, we only pass an integer/float value to the function and it does the rest of the work.

    I am quite sure it only supports px value, although you always extend if you found something over the web.

    Also, If you like the plugin, kindly rate/review us here.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘offset on the confirmation anchor’ is closed to new replies.