<% include('/elements/error.html') %>
-<FORM NAME="QualForm" ACTION="<% $p %>edit/process/qual.cgi" METHOD="POST">
+<FORM NAME = "QualForm"
+ ACTION = "<% $p %>edit/process/qual.cgi"
+ METHOD = "POST"
+ onSubmit = "document.QualForm.submitButton.disabled=true;"
+>
<INPUT TYPE="hidden" NAME="<%$cust_or_prospect%>num" VALUE="<% $custnum_or_prospectnum %>">
<% include('/elements/tr-input-text.html',
'cgi' => $cgi,
- 'label' => 'Service Telephone Number',
+ 'label' => 'Service phone number',
'field' => 'phonenum',
'size' => '12',
'value' => scalar($cgi->param('phonenum')),
%>
<% include('/elements/tr-select-cust_location.html',
- 'cgi' => $cgi,
- $table => $cust_main_or_prospect_main,
- 'alt_format' => $conf->exists('qual-alt-address-format') ? 1 : 0,
- 'no_bold' => 1,
+ 'cgi' => $cgi,
+ $table => $cust_main_or_prospect_main,
+ 'alt_format' => $conf->exists('qual-alt_address_format'),
+ 'disable_empty' => $conf->exists('qual-alt_address_format'),
+ 'no_bold' => 1,
#required for ikano.. config? 'is_optional' => 1,
)
%>
</TABLE>
<BR>
-<INPUT type="submit" VALUE="Qualify" onClick = "this.disabled=true;">
+<INPUT TYPE = "submit"
+ NAME = "submitButton"
+ ID = "submitButton"
+ VALUE = "Qualify"
+>
</FORM>
</BODY>