You could use something similar to what I believe Snake suggested in another post. Have your form to where the person has a choice as you stated previously
Just copy and paste... <script type=text/javascript> function toggleT(_w,_h) { if (document.all) { // is IE if (_h=='s') eval("document.all."+_w+".style.visibility='visible';"); if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';"); } else { // is NS? if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';"); if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';"); } } </script> <form> Type 1 Visible<input name="r1" type="radio" checked value="1" onClick="toggleT('divt1','s')"> Hidden <input name="r1" type="radio" value="2" onClick="toggleT('divt1','h')"><BR> Type 2 Visible<input name="r2" type="radio" checked value="1" onClick="toggleT('divt2','s')"> Hidden <input name="r2" type="radio" value="2" onClick="toggleT('divt2','h')"> </form> <span id="divt1" style="visibility:visible;position:relative;top:0;left:0"> <form> <input type="text" value=""> </form> </span> <span id="divt2" style="visibility:visible;position:relative;top:0;left:0;"> <form> <input type="file"> </form> <form> Doug ----- Original Message ----- From: "Pete" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Saturday, September 23, 2006 12:06 PM Subject: Determining which field to display in a form > > > Hi all > > > > I am working on a form to display to a user. > > > > I have been asked to give a user an opportunity as to which field of two > they are required to complete (they are to be given an opportunity to select > which field they wish to fill in). > > > > i.e. Do you wish to display an image or text? > > > > If the user selects an image they will be shown a text box to enter the > image name into the form. > > > > If the user decides to enter text rather than an image they will be given a > textarea to enter data into. > > > > Is this possible to do and if so how do I go about doing this. > > > > Thanks in advance > > > > P > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253979 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4