AnsweredAssumed Answered

Proper use of Loops

Question asked by jconner99 on Apr 29, 2010
Latest reply on Apr 29, 2010 by philmodjunk

Title

Proper use of Loops

Post

I am writing a script for a user to enter certain data in a field. I have decided to use a custom dialog box for the data entry. I am having trouble matching my workflow, which is as follows:

 

1. Click a button to input data

2. Dialog box appears

3. Enter the data and click OK

4. Data is entered into the appropriate field

 

Two conditions need to happen to complete the workflow

1. The data input cannot be blank

2. The data input is constrained to specific information-

 

Here is my script so far:

 

#open a dilalog box with the required fields

1.Show Custom Dialog (instruct to enter the appropriate data and provide input fields)

#Require the field is populated

2.If [IsEmpty (Specific field)

    3.Show Custom Dialog (explaining the rquirement and providing the input field)

4.Else If (the field data doesnt meet the requirement)

    5.Show  Custom Dialog box (explaininf the data is wrong and prodiving an input field to enter it correctly)

6.End if

 

Here is my problem; at step 5 if the user still puts in the wrong data the script ends and the incorrect data is entered. I think I need a loop can't can't figure out how to place it

Outcomes