Programmatically add entries to Choose One

 I would like to add entries to the Choose One action in the BeforeAction event.

 

What is the API in vbscript to add a choice and set the Choice Text & Choice Value.

 

I keep ending up with blank text.

 

Thanks.

Hi Travis

You can add choices via VBScript using the following syntax:

[code]Action.Choices.Add("Text=Value")[/code]

If you omit the equals sign the result will be blank text.

Regards,
Steve