Hello all.
I'm trying to display (my custom) 'Server side validation' error message with a defined 'Submit URL' unsuccessfully.
It works fine without the 'Submit URL', but I need to redirect the form to a given URL.
Should I try modifying the /plugins/content/chronocontact.php?
How can I verify if a validation error was returned?
Thank you.
Hi Omar,
redirect the form to a given URL.
if you need to redirect them then use the Redirect URL instead, using a submit url will skip any Chronoforms interaction!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks for the reply.
I tried using a 'Redirect URL', but if the custom validation returns an error, the url would be something like
/index.php?option=com_chronocontact&task=send&chronoformname=formName&Itemid=x
where what I need the url to be is
/categoryName_formName
If the form is submitted correctly (all mandatory fields filled), there's no problem.
It's when not all the mandatory fields are provided when I need the form to go to this 'certain' url. With the 'Submit URL' field left empty (and the 'Redirect URL' specified), this works fine, but no error message is displayed, which would solve my issue.
Thanks again.
Hi Omar,
if validation failed then the form is redisplayed, the form will go to the redirect URL only if it passed all the validation, please pay attention that if you used a submit URL then no actions will run by Chronoforms!
so I don't think I can solve your problem but I just told you the main info and may be you will have better ideas!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.