Hello,
A very simple issue : How to stay on the form after save like in joomla "Save" and "Save and close". I would want to implement a button "Save" to do this.
Thanks all
Hi Christophe,
If the form has no file uploads you can use Ajax Submission to do this.
Bob
Hello Bob,
Thanks for your reply.
Briefly, I have to use event to do this ?
Hi Christophe,
There's a setting in the form HTML (Render form) action where you can turn Ajax submission on and off. (If you are using the Simple Wizard you need to change the Setup Mode to Advanced in the form General tab to make the action visible.)
Bob
After submit, modal opens but go back to the list
in error console I have this
L’utilisation d’XMLHttpRequest de façon synchrone sur le fil d’exécution principal est obsolète à cause de son impact négatif sur la navigation de l’utilisateur final. Consulter http://xhr.spec.whatwg.org/ pour plus d’informations.
ReferenceError: chronoforms_validation_signs is not defined
chrono_ajax_submit/</<.success()
index.php:303
m.Callbacks/j()
jquery.min.js:2
m.Callbacks/k.fireWith()
jquery.min.js:2
x()
jquery.min.js:5
.send/b()
there is a connexion action to cc in "on submit"
Hi Christophe,
What modal window opens after submit? What are you submitting then?
I do not understand how you have this set up :-(
Bob
the modal is white, nothing in and a few seconde after we have the list
Hi Christophe,
I don't understand what you are doing here :-(
Bob
I changed "on submit" to json and i have this when i click on submit button : an error
Hi Christophe,
Sorry that doesn't help me :-( What are you using json for?
Bob
A very simple issue : How to stay on the form after save like in joomla the button "Save" ?
HI Christophe,
Use the AJAX setting in the HTML (Render form) action - that will work as long as you don't have any file uploads in the form.
Bob
Sorry but I did it and it doesn't work. the result is to go back to the list
(there is a connexion defined in the "on submit")
Hi Christophe,
This is a form called from a CC listing???
Then I'm not sure what your question is. What exactly do you need to do?
Bob
Yes Bob it call from CC listing and and I want to stay on the form after a creation and after the submit.
The raison is I need the the id (lastinsertid) to continue on the form
Do you understand?
Thanks for your help
Hi Christophe,
Sorry, no, I'm lost. I do not understand what you are trying to do here :-(
Bob
I just want to save without go back to the list. It's so simple.
When you type a content in Joomla, you can 'Save' and stay on the form, I want the same kind