Advertisement

02.29.2008 at 02:51PM PST, ID: 23205332
[x]
Attachment Details

Auto-Populate form fields if a checkbox input is checked

Asked by leerljr68 in ColdFusion Application Server

Tags: Adobe, ColdFusion

I have a flash form with certain required fields but it's possible that certain questions do not pertain to the end-users request.  So I want to have a checkbox on the form and if the end-user checks the box, then I want certain fields to populate automatically with the word "N/A" (for not applicable).

Is this at all possible???

I have included part of the form below.  Any assistance would be greatly appreciated.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
<cfformgroup type="panel" label="Hours of Operation">
		<cfformgroup type="vertical">	
				<cfinput name="setall"
					type="Checkbox"
				 	label="Check this box to set all Hours of Operation questions to 'Not Applicable'"
					align="left">	
		</cfformgroup>
		<cfformgroup type="horizontal">
			<!---- left box ---->
			<cfformgroup type="vdividedbox" id="HOOBox01" width="430">
				<cfformitem type="html">
					<textformat blockindent="1" leading="2">
						<font color="#067AB4" size="-1"><b>Current</b></font>
					</textformat>
				</cfformitem>
				<cfformitem type="spacer" />
				<cfinput name="strHOOWkdayCrnt"
				 	label="Mon-Fri:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the current Hours of Operation for Monday through Friday.">
				<cfinput name="strHOOSatCrnt"
				 	label="Saturday:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the current Hours of Operation for Saturday.">
				<cfinput name="strHOOSunCrnt"
				 	label="Sunday:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the current Hours of Operation for Sunday.">
				<cfselect NAME="strTimeZone" CLASS="small" width="150" label="Time Zone:">
					<option value=""></option>
					<option value="Atlantic">Atlantic</option>
					<option value="Eastern">Eastern</option>					
					<option value="Central">Central</option>
					<option value="Mountain">Mountain</option>
					<option value="Pacific">Pacific</option>
					<option value="Hawaii">Hawaii</option>				
					<option value="N/A">N/A</option>
				</cfselect>	
			</cfformgroup>
			<!---- right box ---->
			<cfformgroup type="vdividedbox" id="HOOBox02" width="430">
				<cfformitem type="html">
					<textformat blockindent="1" leading="2">
						<font color="#067AB4" size="-1"><b>New</b></font>
					</textformat>
				</cfformitem>
				<cfformitem type="spacer" />
				<cfinput name="strHOOWkdayNew"
				 	label="Mon-Fri:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the ' new ' Hours of Operation for Monday through Friday.">
				<cfformitem type="spacer" />
				<cfinput name="strHOOSatNew"
				 	label="Saturday:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the ' new ' Hours of Operation for Saturday.">
				<cfformitem type="spacer" />
				<cfinput name="strHOOSunNew"
				 	label="Sunday:"
					width="300"
					align="left"
					required="true"
					validate="noblanks"
					message="You must enter the ' new ' Hours of Operation for Sunday.">
			</cfformgroup>
		</cfformgroup>			
	</cfformgroup>
 
 
[+][-]02.29.2008 at 03:08PM PST, ID: 21018516

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: Adobe, ColdFusion
Sign Up Now!
Solution Provided By: _agx_
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628