Quote:
Originally Posted by zurih
How can I make some of the fields to be *Required* to sumbit your timeslip???
|
You can do that with javascript in your modifytimeslip template..
For example, if you wanted to require field 50 you could do it like this:
In the modifytimeslip template find (two places):
Code:
<script language="javascript">
<!--
function validate(theform) {
Below both instances add this:
Code:
if (theform.field50.value=="") {
alert("You have not filled in one or more required fields. Please add all required information and try again.");
return false; }
The users will get a javascript alert when they submit the form if a required field is missing.