Thank you for your post.
I'm having a little difficulty understanding what is happening.
Is there an "End If" before the "Loop"?
Inside the "Loop", if either "Print selection field" does not equal "PrintSelection" or not empty, you're in an endless loop.
Any additional information you can give me would be helpful.
No there is not a "End If" before the "Loop"
That is correct the "loop" continues until a valid name is selected from the "Pop-List"
Thank You for Your reply
Some additional info
The purpose is for the user to chick on the "Print Button" and that would bring up a "Pop-Up Menu" field and enter a "Loop" which with in is has a delay for 3 sec. in which to allow the user to select a name from the "list". After the delay the Script sees a name selected and exits the "Loop" then performing a function depending on what name was selected.
Thank You Again
Even though there are only three "End If" to four "If" statements, I think I understand what you are trying to do.
It's the end of the day for me here, so I'll have to try tomorrow. Hopefully, someone else will jump in with an answer.
I'm sorry. Your right there is another "End If" right after the "End Loop"
I really Thank You for any help
Thanks for the clarification.
I think the script can be reduced in size. Look over the following, and let me know if this works.
Set Field [Field Service Reports:: Priint Selection Button; "PRINT" ]
Clear [Select; Field Service Reports:: Print Selection Field ]
Exit Loop If [Field Service Reports:: Print selection field ≠ "PrintSelection" and not IsEmpty [Field Service Reports:: Print selection field) ]
Thank You very much that does work.
One other problem I did find was if the button was hit more then once the loop would start and run as many time as you had hit it. This was solved by Halting and exiting the script in the end of one of conditional sets.
f [Field Service Reports:: Print selection field = "Invoice" ]
Perform Script [Print Invoice]
Else If [Field Service Reports:: Print selection field = "Field Service Report" ]
Perform Script [Print Field ServiceReport]
Thank You Again