MeAppBuilder
Member
Hello,
I have build a newsletter form which writes to database.
I would like to make use of Ajax Refresh with my form module, but facing minor issues.
MODULE FABRIK FORM WITHOUT AJAXIFY
Default Success Message can't be overwritten.
I am just getting the default JS error popup.
When an invalid form is submitted, there are errors with the form.
However, page will top refresh and user has to scroll to footer in order to see the form and errors.
MODULE FABRIK FORM WITH AJAX
Same here.
Default Success Message can't be overwritten.
With Ajax, the success message is displayed with joomla system message (in my case with a custom template system message). Nice!
Currently I get a red border around my input fields (custom css), when validation fails (screen-1).
Text error will only load upon page refresh, which has been discussed in another post (screen-2).
This is interesting:
1. I submit an empty form and get errors
2. I then submit a valid form and everything works
But now, those fields that had an error get the class .fabrikHide and - of course - disappear.
I have to refresh the entire page in order to see the complete form again (screen-3).
In case you want to test live, I can PM URL.
I have build a newsletter form which writes to database.
I would like to make use of Ajax Refresh with my form module, but facing minor issues.
MODULE FABRIK FORM WITHOUT AJAXIFY
Default Success Message can't be overwritten.
I am just getting the default JS error popup.
When an invalid form is submitted, there are errors with the form.
However, page will top refresh and user has to scroll to footer in order to see the form and errors.
MODULE FABRIK FORM WITH AJAX
Same here.
Default Success Message can't be overwritten.
With Ajax, the success message is displayed with joomla system message (in my case with a custom template system message). Nice!
Currently I get a red border around my input fields (custom css), when validation fails (screen-1).
Text error will only load upon page refresh, which has been discussed in another post (screen-2).
This is interesting:
1. I submit an empty form and get errors
2. I then submit a valid form and everything works
But now, those fields that had an error get the class .fabrikHide and - of course - disappear.
I have to refresh the entire page in order to see the complete form again (screen-3).
In case you want to test live, I can PM URL.