# Enhanced prompt for Variables - need dynamic caption & default

**URL:** https://www.finalbuilder.com/forums/t/enhanced-prompt-for-variables-need-dynamic-caption-default/1950
**Category:** Discussion
**Created:** [February 20, 2012, 5:58am UTC](https://www.finalbuilder.com/forums/t/enhanced-prompt-for-variables-need-dynamic-caption-default/1950 "2012-02-20T05:58:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rwerning](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@rwerning](https://www.finalbuilder.com/forums/u/rwerning)
#### Post date: [February 20, 2012, 5:58am UTC](https://www.finalbuilder.com/forums/t/enhanced-prompt-for-variables-need-dynamic-caption-default/1950/1 "2012-02-20T05:58:08Z")

</div>

We're currently using v7.0.0.1065. &nbsp;I have a real need to be able to change the caption & default value of an Enhanced Prompt for Variable (EPV) at runtime. &nbsp;Is there a way to do this, either by changing the beforeaction script or dynamically creating an EPV? If so, could you provide some sort of example?

Explanation:&nbsp;

&nbsp;We have a suite of 18 project scripts that we use to support builds of our software, the scripts are portable between multiple release versions & types of builds (full build, hot fix, service packs, release, debug, manual, automated, etc). During each build we have the option to copy the installs over to 1 or more test servers. &nbsp;One of the issues we deal with is that each build needs a unique project for which servers it should copy to. I've been able to write every other step in the process so that it reads build / server unique settings from an INI file, but this last issue is kicking my rear. &nbsp;

During the copy build process we prompt for the admin on whether or not to copy the build (for manual builds), with a timeout for automated. &nbsp;So I need to keep the EPV in place, but I need to be able to change the caption & deafult.

I want to get rid of this last build specific project. &nbsp;Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![rwerning](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@rwerning](https://www.finalbuilder.com/forums/u/rwerning)
#### Post date: [February 20, 2012, 9:16am UTC](https://www.finalbuilder.com/forums/t/enhanced-prompt-for-variables-need-dynamic-caption-default/1950/2 "2012-02-20T09:16:49Z")

</div>

Oh wow, talk about over thinking a problem. Found the solution on another forum post - just use a variable for the caption and default value. Don't know how I never thought of that one. This has been a nagging issue for longer than I care to admit.

[update]

On the &nbsp;EPV, be sure to check "Expand Variables" on the General Settings tab
