Hello, I’m trying to make my "Job Ticket" field advance by one number with each job.
I tried using this code and had no luck. Any ideal?
Under html_add_form
I add this:
------------------------------
<SCRIPT LANGUAGE="JavaScript">
function doCount() {
form.Job_Number.value = (form.ID.value + 5000);
}
</SCRIPT>
And modify this:
------------------------------
<body onLoad="doCount();>
<form action="$db_script_url" method="POST" name="form">
And under html_record_form
I add this:
------------------------------
<td width="31%"><INPUT TYPE="TEXT" NAME="Job_Number" SIZE="8" VALUE="$rec{'Job_Number'}" MAXLENGTH="8" tabindex="1"></td>
Thank you,
Ed
I tried using this code and had no luck. Any ideal?
Under html_add_form
I add this:
------------------------------
<SCRIPT LANGUAGE="JavaScript">
function doCount() {
form.Job_Number.value = (form.ID.value + 5000);
}
</SCRIPT>
And modify this:
------------------------------
<body onLoad="doCount();>
<form action="$db_script_url" method="POST" name="form">
And under html_record_form
I add this:
------------------------------
<td width="31%"><INPUT TYPE="TEXT" NAME="Job_Number" SIZE="8" VALUE="$rec{'Job_Number'}" MAXLENGTH="8" tabindex="1"></td>
Thank you,
Ed