Forums

Autmatically post a form

nfg 04 Jun, 2010
Hi Folks,

Have a form that posts to a component I created. The component performs some stuff and then it wants to post the data back to a second cronoform which will store the data and send emails etc.

When I send the data to the second chronoform is there a way to make it automatically post the data?
This way the user would not be able to stop the process, especially the sending of emails. Basically I'm looking for all the functions of chronoforms without the filling out of the form

Thanks for any help
GreyHead 04 Jun, 2010
Hi nfg,

You can't actually post back to a ChronoForm because of the security protection to block 'improper' connections.

The best solution is probably to have the ChronoForm talk to the other app using the CURL plugin, that way you can pick up the results in the normal flow. If this isn;t possible then there are other solutions but they involve more hand-coding (or hacking the ChronoForms core code to bypass the security).

Bob
nfg 04 Jun, 2010
Thanks Bob,

I actually resolved this at least with a temporary fix by posting the form using javascript.

It ain't pretty but it works.
This topic is locked and no more replies can be posted.