• Resolved jarkko74

    (@jarkko74)


    Hi,

    Is it possible to set focus to top of the form in multi step forms after clickin the next tab ?

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

    (@edgarrojas)

    Hello!

    Sorry for the delay, yes it is possible but it will require an small tweak, to make it please open the file plugins\smart-forms\js\multiple_steps\multiple_steps_base.ts.

    And change this:

    public MoveToTop() {
    /* 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:

    public MoveToTop() {
    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 ‘Focus to top of the form’ is closed to new replies.