Advertisement

02.20.2008 at 02:10AM PST, ID: 23177050
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Mandatory Form Fields Not Showing

Asked by Angela123 in Hypertext Markup Language (HTML), Web Languages/Standards, JavaScript

Hi
I have created a form and set up mandatory fields.  The text fields are showing in the results but my drop down box and tick box are not showing as mandatory.  can anyone help?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:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
<!-- Print Data Field -->
<!-- Print Data Field -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 
<HEAD>
 
<TITLE>Information</TITLE>
	<META http-equiv=Content-Type content="text/html; charset=windows-1252">
	
<SCRIPT language=javascript type=text/javascript> 
 
function getElement(id) { 
return document.getElementById ? document.getElementById(id) : 
document.all ? document.all(id) : null; 
} 
 
function form_extras(s) { 
for (var opt=0; opt<s.length; ++opt) 
getElement(s[opt].value + '_ext').style.display = (s[opt].selected) ? '' : 'none'; 
} 
 
function XXX_JScheckForm( f )
{
 
	var sErrors = "";
	var sfocusElements;
	var aCheckFields = new Array();
 
	aCheckFields[0] = "sel02_Business_Division:::Business Division";
	aCheckFields[1] = "txt03_Name:::Name";
	aCheckFields[2] = "txt04_Logon_ID:::Logon ID";
	aCheckFields[3] = "chk05_Disclaimer:::Disclaimer";
 
 
// Loop through each field identified as mandatory
	for ( var i = 0; i < aCheckFields.length; i++ ) 
	{
		var aData = aCheckFields[i].split( /\:\:\:/ );
		var oFormElement = eval( "f." + aData[0] );
 
		if ( oFormElement.value.match( /^\s*$/ ) ) 
		{ 
			sErrors += aData[1] + "\n"; 
 
			if ( ! sfocusElements ) { sfocusElements = aData[0]; }
 
		}
	}
	
	if ( sErrors ) 
	{
		alert( "The following fields are required - \n\n" + sErrors );
		eval( "f." + sfocusElements + ".focus()" );
		return false;
	}
	
   return true;
	
}
 
 
 
 
 
 
</SCRIPT>
 
</HEAD>
 
<BODY>
 
<FORM name="frmSendMail" action="http://ABC/include/utilities/misc/sendmail/" method="POST" ENCTYPE="multipart/form-data" onsubmit="return XXX_JScheckForm( this )"  >
 
 
	<input type="hidden" name="ctrlSendToEmailAddress" 	 value="Email.address@Email.com=>Info" />
 
	<input type="hidden" name="ctrlEmailSubject"                     value="Info" />
	<input type="hidden" name="ctrlMethod"                              value="E-MAIL" />	
	<input type="hidden" name="ctrlFromEmailAddress"     	   value=""/>
	<input type="hidden" name="ctrlRedirectURL"              		value="http://ABC/irp/iscp/thankyou.htm" />
	<input type="hidden" name="ctrlReadReceiptEmail"     	 	value="true"/>
	<input type="hidden" name="ctrlEmailSubject"                      value="Info" />
 
	<input type="hidden" name="ctrlEmailReceiptTo"                  value="" />
	<input type="hidden" name="ctrlEmailReceiptSubject"          value="Form Sent" />
	<input type="hidden" name="ctrlEmailReceiptBody"              value="Thank you for using our form. Your details have been sent." />
 
 
<BR><BR>
 
 
 
  <table border="0" cellpadding="2" cellspacing="1" width="80%" align="center">
 		
    <tr>
 
      <td width="100%" height="34" bordercolor="#B2E3F3" class="tableBackLightestBlue" colspan="2"> 
    
<p align ="Left"><b>Version: 3</p>
      <p style="color: #CC0000" align ="center"><b>Information</p><br>
     </b>
 
 
</td>
    </tr>
    
 
<!-- Business Division -->  
 
<tr>
      <td width="100%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3"><b>Business Division</b></td>
      <td width="40%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3">
    		<select size="1" name="sel02_Business_Division">
			<option value="Select">Select</option>
    			<option value="finance ">finance </option>
    			<option value="marketing ">marketing</option>
		
    		</select>
		</td>
    </tr>
 
<!-- Name -->  
 
<tr>
      <td width="100%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3"><b>Full name (first and surname)</b></td>
      <td width="40%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3">
    		<input type="text" name="txt03_Name" input size="39" />		
      </td>
</tr>
 
 
<!-- Logon ID -->  
 
<tr>
      <td width="100%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3"><b>Logon ID</b></td>
      <td width="40%" height="25" bordercolor="#B2E3F3" class="tableBackLgtBlue3">
    		<input type="text" name="txt04_Logon_ID" input size="39" />		
      </td>
 
 
</tr>
 
     
 
 
<!-- Disclaimer -->  
 
<tr>
      <td width="100%" height="34" bordercolor="#B2E3F3" class="tableBackLgtBlue3" colspan="2">
    	
 
	<input type="checkbox" name="chk05_Disclaimer" value="I agree to adhere to its terms and conditions"></b><br>
	
	
 
</td>
    </tr>
 
 
 
<!-- start of Breakout Code -->
 
<TR>
 
	<td class="tableBackLightestBlue" width="100%" colspan="2" height="26">
		<p align="right">
			<INPUT TYPE="Submit" id="SUBMIT1" NAME="submit1" VALUE="Submit" class="abcbutton">&nbsp;
        	<INPUT TYPE="button" id="exit1" NAME="exit1" VALUE="Close" class="abcbutton" onClick="JavaScript:window.close()">
		</p>	</td>
</tr>
 
 
 
 
<TR>
	<td width="100%" colspan="2" height="18" bgcolor="#FFFFFF">&nbsp;	</td>
</tr>
</table>
 
<SCRIPT language=javascript>
 
function formatDate(uTime) {
 
  var fdDay  = uTime.getDate().toString();
  var fdYear = uTime.getFullYear().toString();;
  var fdMonth = uTime.getMonth();
 
  fdMonth++;
  ( fdMonth < 10 ) ? fdMonth = "0" + fdMonth.toString() : fdMonth = fdMonth.toString();
 
  return fdYear + fdMonth + fdDay;
 
 
}
 
var test = new Date();
var time = formatDate(test);
 
document.write("<INPUT TYPE=HIDDEN NAME=txt01_Date VALUE=" + time + ">")
 
</SCRIPT>
</form>
 
 
</body> 
</html>
 
 
[+][-]02.20.2008 at 02:57AM PST, ID: 20936546

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

Zones: Hypertext Markup Language (HTML), Web Languages/Standards, JavaScript
Sign Up Now!
Solution Provided By: TName
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.20.2008 at 03:03AM PST, ID: 20936578

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.20.2008 at 06:44AM PST, ID: 20938207

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 07:51AM PST, ID: 20938907

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2008 at 09:58PM PST, ID: 20945345

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2008 at 02:30AM PDT, ID: 21136271

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628