• Resolved solarpaneles1

    (@solarpaneles1)


    I am using the multiple step form which works great, the problem is that when i click next the form doesn’t scroll to the top so not all the fields are visible, could you tell me how can i fix it please?

Viewing 1 replies (of 1 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    That can be done with an small tweak, please open the file smart-forms/js/multiple_steps/multiple_steps_base.js and change this:
    SfMultipleStepsBase.prototype.MoveToTop = function () {
    /* try
    {
    var scroll = this.FormGenerator.JQueryForm.offset();
    if ((window.pageYOffset + window.innerHeight) > scroll.top)
    rnJQuery(‘html, body’).animate({scrollTop: scroll.top}, 200);
    }catch(err)
    {

    }*/
    };

    for this:

    SfMultipleStepsBase.prototype.MoveToTop = function () {
    try
    {
    var scroll = this.FormGenerator.JQueryForm.offset();
    if ((window.pageYOffset + window.innerHeight) > scroll.top)
    rnJQuery(‘html, body’).animate({scrollTop: scroll.top}, 200);
    }catch(err)
    {

    }
    };

    Regards!

Viewing 1 replies (of 1 total)

The topic ‘Scroll to top’ is closed to new replies.