Forums

Save and stay on the form

webcrea 29 Sep, 2016
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
GreyHead 29 Sep, 2016
Hi Christophe,

If the form has no file uploads you can use Ajax Submission to do this.

Bob
webcrea 29 Sep, 2016
Hello Bob,

Thanks for your reply.
Briefly, I have to use event to do this ?
GreyHead 29 Sep, 2016
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
webcrea 29 Sep, 2016
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"
GreyHead 03 Oct, 2016
Hi Christophe,

What modal window opens after submit? What are you submitting then?

I do not understand how you have this set up :-(

Bob
webcrea 03 Oct, 2016
the modal is white, nothing in and a few seconde after we have the list
GreyHead 03 Oct, 2016
Hi Christophe,

I don't understand what you are doing here :-(

Bob
webcrea 03 Oct, 2016
I changed "on submit" to json and i have this when i click on submit button : an error
GreyHead 03 Oct, 2016
Hi Christophe,

Sorry that doesn't help me :-( What are you using json for?

Bob
webcrea 25 Oct, 2016
A very simple issue : How to stay on the form after save like in joomla the button "Save" ?
GreyHead 26 Oct, 2016
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
webcrea 26 Oct, 2016
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")
GreyHead 26 Oct, 2016
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
webcrea 26 Oct, 2016
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
GreyHead 26 Oct, 2016
Hi Christophe,

Sorry, no, I'm lost. I do not understand what you are trying to do here :-(

Bob
webcrea 26 Oct, 2016
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
This topic is locked and no more replies can be posted.