Buy Now
Sign in

Required Fields

artistjewel , September 25 2007, 13:28
A
artistjewel 20
September 25 2007, 13:28 #2442
Probably really simple but... how do I set the required fields? I had done it within the html but that's not working.
admin 28
September 25 2007, 18:55 #2448
Hi,

How did you do it with html, I cant get it, please post your code so I can look at, you mean you used js ?

Cheers

Max
Attachments
FICHA DATOS.xlsx
(81.84 KiB)
125 Downloads/Views
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
A
artistjewel 20
September 27 2007, 04:11 #2485
This is the peice of code that works fine on an html page on it' own.

<input type="hidden" name="required" value="name,email,message" />
admin 28
September 27 2007, 06:34 #2488
Hi,

Iam really not sure whats the problem, what does the line above mean ?

Cheers

Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
A
artistjewel 20
September 27 2007, 08:38 #2491
I made my form in dreamweaver and have uploaded it to my site as a separate html page for now because when I paste that code into the html feild of chrono forms, it all works - except the required fields. In chrono forms (within joomla) people can submit the form without filling in the required fields.

I want to be able to have my form within my joomla template using chrono forms, but the required fields needs to work. Is there anoher way it is done other than entering it in the html section?
admin 28
September 27 2007, 10:06 #2495
Of course, there must be some javascript code made by dreamweaver somewhere inside the code or in a separate file which must be referenced or included in Chronoforms JS box!!

Cheers

Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
A
artistjewel 20
September 27 2007, 11:28 #2497
This the entire page... I don't see js?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Airfares, Flights, Cruises, Tours, Holiday Packages, New Zealand Destinations - TravelCafe</title>
<meta name="Description" content="TravelCafe, Travel Agency, Airfares, Flights, Cruises, Air New Zealand, Qantas, Holiday Packages, New Zealand" />
<meta name="Keywords" content="Travelcafe, Flights, Holiday Packages, Cruises, Airfares, Travel Agency, Emirates, Air New Zealand, Qantas" />
<style type="text/css">
<!--
body,td,th {
  font-family: Arial;
  font-size: 12px;
}
.style1 {color: #FF3300}
.style2 {font-size: 12px}
-->
</style></head>

<body>
<p align="center"><a href="http://www.travelcafe.co.nz"><img src="http://www.travelcafe.co.nz/images/stories/logo.jpg" width="120" height="85" border="0" /></a></p>
<form method="post" action="http://www.travelcafe.co.nz/cgi-bin/FormMail">
<input type="hidden" name="email" value="quickreply@travelcafe.co.nz" />
<input type="hidden" name="realname" value="TravelCafe" />
<input type="hidden" name="recipient" value="quickreply@travelcafe.co.nz" />
<input type="hidden" name="subject" value="Contact Page" />
<input type="hidden" name="redirect" value="http://www.travelcafe.co.nz/forms/thanks.html" />
<input type="hidden" name="required" value="name,email,message" />
<table width="300" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td align="left" class="style4" scope="col"> </td>
<td align="left" scope="col"> </td>
</tr>
<tr>
<td width="161" align="right" valign="top" class="style4" scope="col"> </td>
<td width="252" align="left" class="style4 style2" scope="col">Email Us </td>
</tr>
<tr>
<td align="left" scope="col"> </td>
<td scope="col"> </td>
</tr>
<tr>
<td align="right" class="style8" scope="col"><span class="style10 style112 style1">*</span>Name:</td>
<td align="left" scope="col"><label>
<input name="name" type="text" size="30" />
</label></td>
</tr>
<tr>
<td align="right" class="style8"><span class="style10 style1 style112">*</span>Email:</td>
<td align="left"><label>
<input name="email2" type="text" size="30" />
</label></td>
</tr>
<tr>
<td align="right"><span class="style8">Phone:</span></td>
<td align="left"><input name="phone" type="text" size="30" /></td>
</tr>
<tr>
<td align="right"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="right" valign="top"><span class="style1 style97 style113">*</span>Message:</td>
<td align="left"><label>
<textarea name="message" cols="40" rows="10"></textarea>
</label></td>
</tr>
<tr>
<td> </td>
<td align="left"><label></label></td>
</tr>
<tr>
<td> </td>
<td align="left"><input name="Submit" type="submit" id="Submit" value="Send" /></td>
</tr>
<tr>
<td> </td>
<td align="left"> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
<br><br>Post edited by: admin, at: 2007/09/27 14:23
admin 28
September 27 2007, 18:26 #2499
Hi artistjewel,

I agree, but there must be some js somewhere or fields won't be validated on the client side, may be on the server side!!

Cheers

Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!