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.

Notification required fields

  1. Hi,

    Is it possible to place the notification message when clicking on the send button for the required field near the send button?
    Now the message is at the beginning of the form.
    When the form is very long the person will not see this message after clicking on the send button.

    If possible what should I change in the code? How can I change the Dutch message?

    http://sonartc.nl/wordpress/contact/aanmelden-2/

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  2. You don't have to move the confirmation to keep it visible. You can use a filter to add a page anchor so the confirmation is visible even on long forms or pages with a lot of content above the form.

    http://forum.gravityhelp.com/topic/new-to-gravity-form-confirm-message-question#post-16944

    You can find a Dutch language translation file here.

    http://forum.gravityhelp.com/topic/dutch-translation-1#post-11570

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  3. Hi Kevin,

    I included the code:
    add_filter("gform_confirmation_anchor", create_function("","return true;"));

    Is this all or I'm I missing something as I see nothing happening with the confirmation.
    It still stays on top of the form.

    Thanks

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  4. That code does not move the confirmation, it simply moves the view port up to the confirmation to ensure that it is visible when the form is submitted.

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  5. Hi David,

    Okay I understand it. But I do not think it is working properly.
    Can you check the form which I provided in the first post above?

    Thanks

    PS: I got several database connection error messages when submitting this post

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  6. Hello,

    I would appreciate to get an reply on my last post.
    Could this also be related to the template when the filter is not working?

    Thanks

    Posted 13 years ago on Wednesday February 2, 2011 | Permalink
  7. Hi,

    I think that my question was not clear enough and so misunderstood.
    The form which I am using is long. So it happens that required fields which are not filled are not visible for the submitter.

    Is it possible that the viewpoint moves to the required filed(s) that are not filled when the submit button is clicked?

    Posted 13 years ago on Saturday February 5, 2011 | Permalink
  8. We understood the question. If you use the anchor method described above, the page will return to the top of the form to view the error message when there is a validation error. It does not move the viewport to any specific field.

    Posted 13 years ago on Saturday February 5, 2011 | Permalink
  9. Hi Kevin,

    Okay, thanks for your reply.
    Tested the form several times but the anchor is not working and the page does not return to the top of the form. I also checked the code in functions.php.

    Could you take a look at the form?

    http://sonartc.nl/wordpress/contact/aanmelden-2/

    Posted 13 years ago on Sunday February 6, 2011 | Permalink
  10. The anchor doesn't work with the Ajax submission method - at least not in version 1.4.5. I believe that that it does work with the 1.5 beta version. I know it was discussed, but am not 100% sure if that's been implemented yet.

    For now, try just doing a normal post submission and you'll see that the anchor works fine.

    Posted 13 years ago on Sunday February 6, 2011 | Permalink
  11. Hi Kevin,

    Yes, after deactivating the Ajax the anchor functionality works now!
    Any idea when the 1.5 version will be available?
    Hopefully with ajax support for the anchor.

    Thanks for your swift support!

    Posted 13 years ago on Sunday February 6, 2011 | Permalink