Forums

OnSaveCodefront

DaveHall 19 Nov, 2008
I had problems with OnSaveCodefront.

I think:

eval('?>'.$connections[0]->OnSaveCodefront);
on line 278 of chronoconnectivity.php

should be:

eval('?>'.$connection->OnSaveCodefront);
Max_admin 19 Nov, 2008
Good catch!! bug fixed and will be in the next release!🙂

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
DaveHall 03 Dec, 2008
Hi Max,

I used this feature to perform validation on my form and return a message back to the user if the validation failed.

If the validation failed I did not want to do the bind and store so I return a non null value from the OnSaveCodefront eval code and catch this in chronoconnectivity.php as follows:

if (eval('?>'.$connection->OnSaveCodefront) != null)
{
    $mainframe->redirect( JRoute::_("index.php?option=com_chronoconnectivity&connectionname=".$connection->name,false));
}


Hope this helps!

Cheers,
Dave
Max_admin 04 Dec, 2008
Hi Dave,

Thanks for the code, did you try to use this without the change:

return; $mainframe->redirect( JRoute::_("index.php?option=com_chronoconnectivity&connectionname=".$connection->name,false));
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.