PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Page focus jumping

  1. danielpettifer
    Member

    After a long sleepless night (I managed to get 90 minutes) I have managed to successfully install a working form with conditional logic inside a modal window. I am very pleased. However, whenever I move to the next page in the form the screen jumps down to focus the form at the very top of my screen. Is there anyway to prevent this? Please excuse my incessant questions..........

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  2. This is by design, when a user is using a multi-page form and they advance to the next page the focus goes to the form. One solution might be to display the form using AJAX turned on. Do you have AJAX turned on? Are you using the shortcode or the function call?

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  3. danielpettifer
    Member

    I have ajax turned on and I'm calling the form in the template however I am not sure if the call is correct for ajax use as it only has false declarations : ` <?php gravity_form_enqueue_scripts(5,true); ?>
    <?php gravity_form(5, false, false); ?>`

    I am happy for the focus to be on the form but I would like the form to remain centred in the screen. The benefit of having a multi page form means I don't have to cram all of that info into one long strip. when the form opens it is centred but jumps up as you progress, Is there any way I can just keep it right in the middle? I am trying to develop a web app and I want it to remain as simple as possible for the user.

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  4. The function call for an AJAX form would be:

    <?php gravity_form(5, false, false, false, '', true); ?>

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  5. danielpettifer
    Member

    Thankyou for your quick reply, it worked perfectly although for some reason my css has vanished & been replaced by something else. Is there a workaround?

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  6. What do you mean it's been replaced by something else? Can you provide a link where we can view this and instructions on what to look at to see the issue?

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  7. danielpettifer
    Member

    I mean the css has changed, it is not formatted in the same style as it was before i changed the function call.

    http://www.docsense.net/

    click the large "let's get started button"

    It is linked to gravforms.css but the style sheet is not being recognised now for some reason. I am going to check the paths haven't changed when I updated the plain page template.

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink
  8. danielpettifer
    Member

    False alarm, completely my fault, I had two copies of the template on my hard drive. Have fixed the issue. Thanks again for all your help...

    Posted 13 years ago on Tuesday March 22, 2011 | Permalink

This topic has been resolved and has been closed to new replies.