# Programmatically add entries to Choose One

**URL:** https://www.finalbuilder.com/forums/t/programmatically-add-entries-to-choose-one/1700
**Category:** Discussion
**Created:** [February 15, 2011, 6:55am UTC](https://www.finalbuilder.com/forums/t/programmatically-add-entries-to-choose-one/1700 "2011-02-15T06:55:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 15, 2011, 6:55am UTC](https://www.finalbuilder.com/forums/t/programmatically-add-entries-to-choose-one/1700/1 "2011-02-15T06:55:06Z")

</div>

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

&nbsp;

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

&nbsp;

I keep ending up with blank text.

&nbsp;

Thanks.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [February 15, 2011, 11:32am UTC](https://www.finalbuilder.com/forums/t/programmatically-add-entries-to-choose-one/1700/2 "2011-02-15T11:32:24Z")

</div>

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
