"GOTO" event...

How to avoid repeating code in ChronoForms workflows.

Overview

The issue occurs when the same action needs to be performed in multiple form events, like an ON SUBMIT check and an IPN listener, leading to duplicated code.
Use an Event Loop element, which acts as a "Go To" event, to call a shared set of actions from different points in the form processing.

Answered
en enzo.orsi 25 Aug, 2015
Hi,
sorry for the maybe "stupid" question, probably it is not possible in CF.

I have:
ON SUBMIT => DB Read => IF:
- found > do something
- not found > PayPal Redirect

ON IPN => PayPal Listener => do something

Is there any way to not repeat the "do something" (in order to avoid to maintain double codes etc)? Like a GO-TO event...
Gr GreyHead 25 Aug, 2015
Answer
1 Likes
Hi enzo.orsi,

+ You can include custom code. Please see this FAQ

+ You can use an Event Loop - that is a Go To event.

Bob
en enzo.orsi 25 Aug, 2015
That's great with Event loop!!!!
Thank you!
I had the answer in front of my eyes...that's stupid...
This topic is locked and no more replies can be posted.