Hi,
I have one more question - there is possibility to prompt for boolean variables, e.g. select variants of build process to run. Is it possible to have, e.g. three boolean checkboxes with functionality that only one option can be checked (something like “radio buttons” with Group property from Delphi) ?
Hi Josef,
Not at the moment, no. I’ll add it to our to-do list and see if we can implement it for a future version.
In the meantime, if you use Checkboxes then you can put some script in the AfterAction script event of the action, to check if only one checkbox has been selected and fail the action otherwise. If you set “Retry Count” on the action then it will redisplay the prompt, as well.
The script could look something like this (JScript shown, VBScript would be similar):
int count = 0;
if (FirstOptionVariable)
count++;
if (SecondOptionVariable)
count++;
if (ThirdOptionVariable)
count++;
ActionResult = (count == 1);
Continue = ActionResult;
Hth.
Just showing off here, but anyway: (VBScript)
ActionResult = (FirstOptionVariable XOR SecondOptionVariable XOR ThirdOptionVariable)
Continue = ActionResult
Probably the only time the XOR operator is useful for anything!
Steve
You can use the multi question to prompt for boolean values (admitedly it doesn’t have radio buttons so it’s a bit limited in that sense). I use it to allow the operator to pick the steps they want to run.