# How can I create a multiple checkbox?

**URL:** https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659
**Category:** Discussion
**Created:** [November 16, 2007, 9:59am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659 "2007-11-16T09:59:17Z")
**Posts on this page:** 8
**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: [November 16, 2007, 9:59am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/1 "2007-11-16T09:59:17Z")

</div>

hey,

i've got following problem. at the beginning of the building process i read an ini file which includes every customer with their credentials i can build a package for. now i'm searching for a possibilty that for example a message box pops up and within the message box there are the names of the customers and checkboxes so that i can choose for which customer i would create a package.

or is this the complete wrong way and there is a better solution?

thx in advance

BamBamBam

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [November 18, 2007, 11:06am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/2 "2007-11-18T11:06:34Z")

</div>

Hi Franz,   
  
 Thanks for your post. The Prompt For Variables (Enhanced) action contains a range of controls to prompt for user input, and this should allow you to create the dialog you’re thinking of. It’s a fine approach if you need to be able to parameterize each build via a user interface.   
  
 Regards,   
  
 Angus   
  
 PS If you’re also doing scheduled daily builds (or the like), there is a variable called %ISAUTOBUILD% which you can check to find out if you should pop up the dialog, or do something else (like use some default settings, etc.)

---

<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: [November 23, 2007, 9:20am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/3 "2007-11-23T09:20:41Z")

</div>

thx for your answer.   
 now i’ve got one last further question: how can i add variables to the prompt for variables (enhanced) action at runtime? is this only possible with a script?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [November 25, 2007, 11:20am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/4 "2007-11-25T11:20:19Z")

</div>

Hi Franz,   
  
 You want to configure which variables to prompt for at runtime? This may be possible using script, by editing the VariableDefaults list at runtime. It may not actually be possible at all (sorry), maybe you could use If/Then logic to decide which Prompt For… action to run, and have each configured with a different set of variables?   
  
 Regards,   
  
 Angus

---

<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: [November 26, 2007, 11:15am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/5 "2007-11-26T11:15:24Z")

</div>

Well I do it as follows:

I have a variable GEN\_PROJLIST &nbsp;that I build in Runtime&nbsp;.Each time I want to add an&nbsp;item to it, I use Set Variable&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

OriginalValue +&nbsp;chr(13)&nbsp; +NewString . This way I get a the right String.&nbsp;In the &nbsp;Prompt for Variables (enhanced) , In the Dialog Items, Values field I put the %GEN\_PROJLIST% that I have created. The type is Check LIst. It works Fine .

Daphna

---

<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: [November 26, 2007, 11:47am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/6 "2007-11-26T11:47:58Z")

</div>

ok, now i use the set variable action. in the new value edit i enter: %GEN\_PROJLIST% + chr(13) + “FRANZ”.   
 but now the result string is: + chr(13) + “FRANZ”   
 what did i do wrong?

---

<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: [November 26, 2007, 4:45am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/7 "2007-11-26T04:45:18Z")

</div>

i solved my problem by using the append to variable action. now everything works fine.   
  
thx everybody for the support :)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [November 26, 2007, 11:13am UTC](https://www.finalbuilder.com/forums/t/how-can-i-create-a-multiple-checkbox/659/8 "2007-11-26T11:13:50Z")

</div>

Hi Franz,   
  
 Glad you got it all sorted. :-).   
  
 Regards,   
  
 Angus
