# How to allow user to select from a list of options

**URL:** https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315
**Category:** Discussion
**Created:** [January 17, 2007, 10:17am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315 "2007-01-17T10:17:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andreas.axelsson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/858c86/32.png) [@andreas.axelsson](https://www.finalbuilder.com/forums/u/andreas.axelsson)
#### Post date: [January 17, 2007, 10:17am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/1 "2007-01-17T10:17:01Z")

</div>

I’d like to setup a build where the user is presented with a list of possible values, instead of just an edit box. Say I have a number of configuration files in a folder and I want the user to be able to pick one to use, then I don’t want to edit the FB project when I change the number of config files, a simple “pick the one you like from this list” would be nice. There’s a file browser option, true, but the file thing is just an example, the list of options could well be in a file that I’ve parsed in a previous action.  
  
Cheers,  
/axl

---

<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: [January 17, 2007, 9:42am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/2 "2007-01-17T09:42:09Z")

</div>

When I need to create a GUI front-end to a script I have written, I use [AutoIt](http://www.autoitscript.com/). If you’re not familiar with it, it is a very powerful windows scripting language with Visual Basic style syntax and it’s 100% freeware.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [January 18, 2007, 12:11pm UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/3 "2007-01-18T12:11:08Z")

</div>

Andreas,  
  
Have you had a look at the “Choose One” action? You can show a list of values, and the user needs to pick one.  
  
hth.  
.t8

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [January 18, 2007, 3:18am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/4 "2007-01-18T03:18:08Z")

</div>

I actually just solved exactly this problem. What I did was use a file iterator to build a variable containing a carriage return-separated list of values. Ie, a variable “configs” has a value like this: “config1.iniconfig2.ini”.Then, I used a “prompt for variables (enhanced)” action with a type of “Sorted List”. In the Values field, put the variable, like %Configs%.Works pretty well.Steve

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [January 18, 2007, 3:20am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/5 "2007-01-18T03:20:02Z")

</div>

Tate, what’s this “Choose One” action of which you speak? I can’t see any actions with a name or behaviour like that in the interactive list.Steve

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [January 18, 2007, 4:00am UTC](https://www.finalbuilder.com/forums/t/how-to-allow-user-to-select-from-a-list-of-options/315/6 "2007-01-18T04:00:21Z")

</div>

Ooops  
  
It's a new action that should be making it's way into FB soon...  
  
(so for now, best option is to use Prompt for Variables Enhanced as Steve suggested)
