Hello,
I'm trying to use the event switcher in CFv5 but am having difficulty in understanding how to set it up properly. Here is how my actions are set up:
[attachment=0]actions.jpg[/attachment]
Here is the debub info to reference when I explain what I'm trying to do.
[attachment=1]debug.jpg[/attachment]
What I'm trying to do is make sure duplicate ID numbers don't get entered in the db. So, when the form is filled out, if
I'm afraid I can't figure out how to code the event switcher to verify the information.
Hope this is clear. Thanks for your help.
I'm trying to use the event switcher in CFv5 but am having difficulty in understanding how to set it up properly. Here is how my actions are set up:
[attachment=0]actions.jpg[/attachment]
Here is the debub info to reference when I explain what I'm trying to do.
[attachment=1]debug.jpg[/attachment]
What I'm trying to do is make sure duplicate ID numbers don't get entered in the db. So, when the form is filled out, if
Array
(
[binum] => bi18456
is present in the db (which in this example it is), a message will appear stating the number is already in the db and the data will not be saved. If the number is not in the db, a message will state the information was saved, and a db save action will occur.
I'm afraid I can't figure out how to code the event switcher to verify the information.
Hope this is clear. Thanks for your help.
Hello chriso0258,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Event switcher
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Event switcher
P.S: I'm just an automated service😉
I looked at that help but still not sure how to set this up.
Hi Chriso,
It would be something like this:
That will run the "on fail" event if the record exists.
Regards,
Max
It would be something like this:
if(!empty($this->data["Data"]["binum"])){
return "false";
}
That will run the "on fail" event if the record exists.
Regards,
Max
This topic is locked and no more replies can be posted.