Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
Seems like it would be simple or obvious but I've searched the site and forums and cannot find any info. Maybe I'm looking in the wrong places?
How can I setup my form and Form Tools to make certain form fields required for submission?
Thanks!
Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
Perfect! Those answered my questions. Thank you!
Posts: 3
Threads: 1
Joined: Dec 2010
Reputation:
0
Hi I wont to put Really Simple Validation (RSV): Standalone Version in my form.
Can some expain hay to Add your form-specific validation code.
var rules = []; // this stores all the validation rules
rules.push("required,first_name,Please enter your first name.");
rules.push("required,email,Please enter your email address.");
rules.push("valid_email,email,Please enter a valid email address.");
Where to put thet code in page (form) becouse I put end dont work!?
Thanks.
Posts: 3
Threads: 1
Joined: Dec 2010
Reputation:
0
Dec 19th, 2010, 7:25 AM
(This post was last modified: Dec 19th, 2010, 7:26 AM by drakar.)
Thanks, on replay Ben.
Byt can you please tell my where to put thet code in my form:
var rules = []; // this stores all the validation rules
rules.push("required,first_name,Please enter your first name.");
rules.push("required,email,Please enter your email address.");
rules.push("valid_email,email,Please enter a valid email address.");
My form:
............................
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="rsv.js"></script>
</head>
<body>
<table width="38%" border="2" cellpadding="0" cellspacing="0" bgcolor="#666666">
<form action="http://test.kavanali.com/formtools/process.php" method="post" enctype="multipart/form-data" onsubmit="return rsv.validate(this, rules)">
<input type="hidden" name="form_tools_form_id" value="2" />
<tr>
<td colspan="2" align="right"><div align="left"><strong><font color="#FFFFFF"><br>
Vaše ime:</font></strong>
<input type="text" name="name">
</div>
<div align="left"><br>
<font color="#FFFFFF"><strong> Email adresa:</strong></font>
<input type="text" name="address">
</div>
<div align="left"><br>
<font color="#FFFFFF"><strong> Grad:</strong></font>
<select name="age" size="1">
<option value="vs">vs</option>
<option value="21-30">21-30</option>
<option value="31-50">31-50</option>
<option value="51-70">51-70</option>
<option value="71-100">71-100</option>
<option value="Over 100">Over 100?...</option>
</select>
<br>
<br>
<font color="#FFFFFF"><strong> Your Age:</strong></font>
<input type="radio" name="Pitanje" value="da">
<strong>da</strong> </div>
<div align="left">
<input type="radio" name="Pitanje" value="ne">
<strong>ne</strong><br>
<br>
<font color="#FFFFFF"><strong> Unos:</strong></font>
<br>
<input type="checkbox" name="unos" value="jedan">
<strong>prvi</strong><br>
<input type="checkbox" name="unos" value="dva">
<strong>drugi</strong><br>
<input type="checkbox" name="unos" value="tri">
<strong>treci</strong><br>
<br>
<font color="#FFFFFF"><strong> Slika:</strong></font>
<input type="file" name="file">
<br>
<br>
<font color="#FFFFFF"><strong> Poruka:</strong></font><br>
<textarea name="feedback" rows="6" cols="25"></textarea>
<br>
<br>
<input type="submit" value="Poslati">
<input type="reset" value="reset">
<br>
<br>
</div>
</td>
</tr>
</form>
</table>
</body>
</html>
.............................
Posts: 10
Threads: 0
Joined: Dec 2017
I'm new to this issue and you helped me.