WordPress.org

Ready to get started?Download WordPress

Forums

Ninja Forms
[resolved] "Success Message" feature suggestion (3 posts)

  1. chiappa
    Member
    Posted 1 year ago #

    I very much like the improvements on this plugin. However the success message feature has a few flaws. Most sites will want to state the message as clearly as possible.
    However with ninja forms:

    - message shows on top of the form, which is opposite to where the submit button is
    - page jumps to the top after hitting submit

    IMHO. These two flaws make the success message feature unusable and leaves with just the landing page option.

    My preference would be that the success message shows under the form (next to the submit button) and does not move the page. Thanks :)

    http://wordpress.org/extend/plugins/ninja-forms/

  2. James Laws
    The WP Ninjas
    Plugin Author

    Posted 1 year ago #

    Thanks for the suggestions. We will strongly consider this change.

    The page jump to top can't be fixed until we add back in AJAX submissions in the next couple weeks. Right now the page reloads on submission and so that is a natural part of that process.

    The message placement is something that we can easily adjust. In fact you could easily change it as well depending on how comfortable you are with WordPress actions.

    The message is hooked in to the page like this...

    add_action( 'ninja_forms_display_before_form_wrap', 'ninja_forms_display_response_message' );

    You could easily remove this action in a small custom plugin and rehook it in later in the form output. Perhaps here....

    add_action( 'ninja_forms_display_after_form_wrap', 'ninja_forms_display_response_message' );

    or

    add_action( 'ninja_forms_display_close_form_wrap', 'ninja_forms_display_response_message' );

    Our main goal with this release is to make super easy to extend Ninja Forms without ever needing to touch the core code so that people like you could truly make it into whatever you need it to be.

    I hope this helps.

  3. adef
    Member
    Posted 10 months ago #

    Are these changes still on the cards? I've chanced the before_form_wrap to after_form_wrap in the includes/display/form/process-message.php and response-message.php files but they'll get overwritten in the next update.

    I'm new to wordpress how can avoid them being overwritten? is there a different way to achieve the same thing?

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.