Dynamically Generate Form Field - How?


hi,
i'd find out how can form fields dynamically generated based on users input?

e.g how many children have? (user enters 2 in form field)
2 empty form fields generated user enterthe names of 2 children.

thnks

nich

the easiest way use cfselect have onchange actionscript unhide text boxes. if use text box, have no real way of knowing user might input. like:

<cfslect name="example" label="how many children?" width="55" onchange="{
if (this.example.value==1){this.txt1.visible=true;}}">
<option value=""></option>
<option value="1">1</option>
etc..
</cfselect>
<cfinput type="text" name="txt1" width="100" label="name" visible="no">


More discussions in ColdFusion Rich Forms


adobe

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support