I have a php page for creating user: CreateUser.php?id=1&name=user
How Can in Submit my Form data to this page using Ajax request and method type=GET?! or is there any other method allow me to do this function?!
Where can i put my code ?!
thank you,
Hi basharald,
In the Form Setup tab open the HTML (Render form) action settings. Set up:
+ Form Method: Get
+ Action URL: CreateUser.php
+ AJAX Submit: Yes
Bob
Thank you !
But could you please send me a screenshot for this ,and in witch version of Chronoform ?!
Hi basharald,
ChronoForms v5,
Please open the HTML Render Form action and look for the settings. If you are using the Simple Wizard and can't see the action please switch the Setup Mode to 'Advanced' on the General tab of the form.
Bob
Hi,
I did it But i have file uploads in my form and they were not uploaded ?!
Hi basharald,
That's because:
a. the AJAX submission doesn't support file uploads.
b. you are submitting the form to a non-ChronoForms URL so that will have to handle the uploads as ChronoForms will never see the form data.
Bob
thank ,
so there is no solution to submit my data after my files saved in chronoforms?!
Or Is there an ajax event or something fires after the submission and resent the data to another URL !
please i need a solution for this
thank you very much
Hi basharald,
What exactly are you trying to do?
Bob
Hi ,Okay
I have the Chronform with some fields and file uploads , and after submit i need to:
[list=]send my form data to Submit URL (in a second server to save it).
save my files in my current server. (or if there is a way to send my files directly to the second server it will be okay)
sent the files urls. to be saved into the second server.
[/list]
thank you very much.
Hi basharald,
I don't know if you can upload files directly to a remote server. It might be possible . . .
I suggest that you turn off Ajax. Submit the form normally to ChronoForms, upload the files then send the form data to the remote server using cURL (or a Redirect if you need to send the User there too).
Bob
Thank you very much
The cURL Worked with me,
thanks a lot🙂