Buy Now
Sign in

Message only inside the module that contains the form

RalfF , October 24 at 14:28
Answered
R
RalfF

Hi there,
I’m faced with following issue:

I have a very simple form (name, e-mail) with the security image.
The form is placed in a module in the footer. I have to scroll to see the module.
By passing the data with an error in the security image (no icon activated / wrong icon activated) I’m getting in following trouble:
1. After clicking the "Send" button the error message of “Check Security image” is displayed in the module where the form is located (in the footer). There is no possibility to select “system messages bar” or "body". This is not the best way for me because the page is reloaded and shows the top of the page. And the error messages is displayed in the footer - not visoble for the user because the page content is too long.

2. By ignoring the standard message and including a separate message in the "fail" of "Check Security image" unforunately the message is displayed in the module, too - despite choosing “system messages bar”. “System messages bar” generally does not work for Chronoforms (other applications do). I’m using a Gantry 5 template. Is a Gantry5 issue known or is it a Chronoforms issue?

Thanks in advance for any support.
Ralf

GreyHead

Hi Ralf,

The simplest solution is to enable Ajax submission on the form then it will submit and display the message in the module. This will work provided that there are no file uploads. Otherwise you have to add JavaScript to be used when the messages show to scroll back to the module location - there are some examples in the forums here.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

R
RalfF

Thanks Bob.
I realized it with a simple JS. .
Thread can be closed.