With this javascript in the HTML head:
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkform( form ) {
if (form.Subject.value == "") {
alert( "You must enter a subject." );
form.Subject.focus();
return false;
}
return true;
}
-->
</SCRIPT>
And changed the submit button HTML to this:
<INPUT TYPE="SUBMIT" VALUE='Create' onClick="return
checkform(document.TicketCreate);">
To check other fields, just add more "if" statements for those other
form values.
Eric Schultz
United Online
> -----Original Message-----
> From: Christian Janssen [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 04, 2006 10:33 AM
> To: Schultz, Eric
> Cc: [email protected]
> Subject: Re: [rt-users] Mandatory ticket fields
>
> On 21/07/06, Schultz, Eric <[EMAIL PROTECTED]> wrote:
> ...
> >
> > For Subject and Requestor, it should be simple enough to have a
> > javascript in the page to force these. I have one for
> Subject already,
> > it was not difficult.
> >
> > Eric Schultz
> > United Online
> ...
>
> How did you do ?
>
> cheers
> Christian
>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com