• Resolved rcee

    (@rcee)


    hi

    First I would like to say thank you for this useful plugin and your continued work developing updates

    Can you help with managing the page position after the ‘submit’ action and particular outcome result?

    Specifically, is it possible to have the focus stay on the form password field position when an input error occurs?

    I think the previous update actually did do this, but the latest 3.1.3 automatically scrolls to the top of the page like earlier versions (I might be wrong, I can’t check without backing out the update).

    This means the user always finds themselves at the top of the page after submit and has to scroll back down to the input field in order to read the error message and resubmit.

    While this might be desirable in some scenarios, it doesn’t seem the best experience for all, especially if need to see error notification and re-enter password.

    Also, if the protected content is in a lower section of a page, is it possible to anchor the open to the content protection shortcode location rather than scroll to top of page?

    I suppose my question is whether there is something that can be customized in order to decide the screen focus position, with dependency on the outcome of the content-protection submit event, either error or success?

    Hope the above made some sense and not a daft question
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @rcee,

    could you send a copy of that to hello@patrickposner.de so I have your e-mail?

    I will find a solution to cover both scenarios and would like to give you a pre-version of 3.1.4 so you don’t have to wait for the next release.

    Thanks!
    Patrick

    Thread Starter rcee

    (@rcee)

    Hi Patrick
    Thank you for your response and support for my enquiry, both are much appreciated !
    I have sent copy as requested
    Thanks again, Rhys

    Hey @rcee,

    cause of some other problems I released 3.1.4 earlier as planned.

    Good for you! 🙂

    Under Settings->Passster switch to the tab “Options”. There you can find the “Use Autofocus” option.

    This should fix your first problem (If someone add the wrong password, focussing the form to be able to read the error instructions).

    Problem 2: Scroll to content if it is unlocked

    I build a small snippet for that. Please add this to your functions.php.

    Snippet: https://gist.github.com/patrickposner/59517e87e78d912fdc351acbfc2c1c4d

    So, if a user lock the content, the page auto-scrolls to the unlocked content.

    Best regards,
    Patrick

    Phil

    (@owendevelopment)

    This didn’t work for me. The snippet doesn’t seem to check if content is unlocked for me, only if it’s a post and has the shortcode. It forces all users halfway down the page regardless if whether they completed the password form or not.

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

The topic ‘Page position on submit outcome’ is closed to new replies.