cmj

Pause Script Step

Discussion created by cmj on Oct 13, 2017
Latest reply on Oct 13, 2017 by cmj

I have a script for a field validation. The script contains 2 distinct steps. The 1st step checks to ensure that the value entered into the field contains 4 characters. The second step checks to ensure the value is greater than a value in another field.

I want the 1st step to loop until the value in the field meets the validation requirement under step 1. Once met, then the script continues to step 2.

I've tried:

If [ Length(Field1) is not = to 4]

Show Custom Dialog ["bla bla bla"]

Clear [Select; Field1]

Go to Field [Field1]

Loop

Exit Loop If [Field 1 = 4]

Perform Script [ this script]

End Loop

End If

 

Start of step 2 in the script...

 

The problem with the script above is that it goes into and endless loop. I need to pause the loop and allow the user to enter a new value.

What am I missing to pause the script until the user enters a new value?

 

Thank you!

Outcomes