Before I get into the details of my situation, let me just clearly ask: Is there a way to put a delay in an action in the setup tab? This would allow us to to specify some time interval to wait before the next action is processed.
For example, I have a Read Database action. I am looking up if an email address already exists in a table (this is a registration form). If found, I display a message stating, "This email address is already registered". I would then like to have a delay action, so I can give someone maybe 10 seconds to read that message, and then process the next action, which would be an Event loader (to reload the Load event). I could then on fail, proceed to process the rest of my form, but if I have the event switcher in the On Success, then it doesn't really matter; I can keep the rest of my actions just coming directly after the Read Database (makes it a little easier to manage, but at least in CF6, it is now extremely easy to move things around if that is just the better approach). Currently I have the Email address found message, followed by my Registration Complete Message.
I think a delay action would be useful, but I could understand if in this case, I just need to change my logic and move the rest of my form into the On Fail case of my Read Database event. My On Load event renders the form, though, and I think the On Submit event fires after the page is navigated away from (my button is type: Submit), so I think I do have to re-render the form again.
For example, I have a Read Database action. I am looking up if an email address already exists in a table (this is a registration form). If found, I display a message stating, "This email address is already registered". I would then like to have a delay action, so I can give someone maybe 10 seconds to read that message, and then process the next action, which would be an Event loader (to reload the Load event). I could then on fail, proceed to process the rest of my form, but if I have the event switcher in the On Success, then it doesn't really matter; I can keep the rest of my actions just coming directly after the Read Database (makes it a little easier to manage, but at least in CF6, it is now extremely easy to move things around if that is just the better approach). Currently I have the Email address found message, followed by my Registration Complete Message.
I think a delay action would be useful, but I could understand if in this case, I just need to change my logic and move the rest of my form into the On Fail case of my Read Database event. My On Load event renders the form, though, and I think the On Submit event fires after the page is navigated away from (my button is type: Submit), so I think I do have to re-render the form again.