Is there a way to make a variable within “Prompt for Variables (Enhanced)” required? For example, I need to ensure the user has indeed choosen an item from a checklist control. Would I do this using scripting?
Thanks.
Jeff,
Yes, you can write some script to do this. First in the BeforeAction event make sure you set your variable to a known value:
MyChoiceVariable = ""
Then in the AfterAction do something like this:
if MyChoiceVariable = “” then
Action.SendLogMessage “Failing action because user didn’t choose an option”
ActionResult = False
end if
hth.
Or, use a While Loop:
Set variable MyChoiceVariable = ""
While Loop (MyChoiceVariable = “”)
-Prompt for Variables (enhanced)
You could get more fancy, but that’s the basic idea.
Steve
Slick solution. I implemented the ‘while’ option. Exactly what I needed.
Thanks.