[rt-users] Mandatory ticket fields

Schultz, Eric ESchultz at corp.untd.com
Tue Sep 5 11:42:28 EDT 2006


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:christian.janssen at gmail.com] 
> Sent: Monday, September 04, 2006 10:33 AM
> To: Schultz, Eric
> Cc: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Mandatory ticket fields
> 
> On 21/07/06, Schultz, Eric <ESchultz at corp.untd.com> 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
> 



More information about the rt-users mailing list