AnsweredAssumed Answered

Continue Loop with 'On Exit' script trigger

Question asked by JulioSandoval on Nov 16, 2017
Latest reply on Nov 17, 2017 by JulioSandoval

Hello Everyone,

 

I currently have a loop that pauses, and then continues when a button executes the 'Resume Script' step.

 

I would like to know if there is a way I can continue a loop with a script trigger 'On Exit'

 

My script is currently:

 

"

Go to layout [providers]

Show all records

Go to Record [First]

 

Loop

 

Set Variable [$providerid]

 

Go to Layout [locations]

Go to Record [First]

 

     Loop

          Set Variable [$locationid]

 

          Go To Layout [data_entry]

          New Record

          Set Field [provider_id ; $providerid]

          Set Field [location_id ; $locationid]

          Pause/Resume Script [Indef] <--- I want to replace this Step so I don't have users press a button.

          Set field [save_init ; 1]

          Go To Layout [locations]

          Go To Record [Next ; Exit after last]

     End Loop

 

Go to layout [providers]

Go to record [Next ; Exit after last]

 

End loop

"

 

The end result I want is, when they users enter data on the last field, when they exit (tab out) , it continues the loop.

 

Thank you all for your help.

 

Cheers.

Outcomes