Forums

onSubmit code doesn't execute when running from connectivity

menchee 12 May, 2010
Hi,
I'm trying to INSERT/UPDATE posted data to a second table.
The best logical place seams to be onSubmit After sending email (Email the results is enabled, but I don't really send any email).

When I run the form directly (as a menu item), the code in the onSubmit exectutes.
BUT - when I get to the form from chronoconnectivity (using {edit_record} or {new_record}, none of the onSubmit codes works.

Any idea?
Emanuel.
GreyHead 13 May, 2010
Hi Emanuel,

Sorry I've lost track of how CC links to CF -I just use direct URL links.

Have you tried connecting to both tables through the DB Connection? That might work OK.

Bob
menchee 13 May, 2010
Hi Bob,
As far as I remember, Chronoconnectivity can handle only one table, but I'll check this approach.
Meanwhile, until I'll get an answer about this issue, I'm working on updating the second table using JSON and the EXTRA code.

The onSubmit pieces of code are, to my opinion, key elements in Chronoform and are part of what makes this extension so versatile within Joomla framework, so I hope I'm just doing something wrong here...
I hope Max or Fredrik can help here...

Thanks anyway,
Emanuel.
GreyHead 13 May, 2010
Hi Emanuel,

ChronoConnectivity can only handle one table; ChronoForms can handle more than one though. Perhaps I'm not clear where you are doing the saving.

Bob
This topic is locked and no more replies can be posted.