Hi,
I have setup a form that does a read of the database on load. I need it to check a field on load to see if it contains data, if it does it should redirect to another page. How should I go about doing this?
Cheers.
there is an "if conditions" action, and in v7 there is a "Run Conditions" behavior to assign to a redirect action, but there is a bug in the redirect action at the latest v7 update!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Don't even need if conditions in v6. Just do a read data, and in the "found" branch put the redirect.
Well do you have a radio35 column in your database? Or are you looking to check the value of a field called radio35?
Hi, yes I have a column in my DB called radio35. If it has Y in it then it means the user has already filled in the form, so I want it to redirect to another page. If any other value in that field including NULL, it should continue to load the form.
Well you say there was an error but what error
Well of course not. You're asking it to get ONLY the data where the uuid matches AND radio35 is Y.
So do I need 2 seperate read data sections or can I do it in one?
One. In found, do an event switcher where if {var:readfataname.model.radio35} is Y you do the redirect
Thanks, I managed to get that working with what you suggested, cheers.