WordPress.org

Support

Support » Plugins and Hacks » [Resolved] "Success Message" feature suggestion

[Resolved] "Success Message" feature suggestion

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author James Laws

    @jameslaws

    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.

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] "Success Message" feature suggestion’ is closed to new replies.