Posted By John Henley on 01/06/2012 12:18 PM I think your JavaScript is invalid for the OR "||", and you need to repeat the left side, e.g. if( trim(getDBField('EMPLOYEE', 'SEC_LOCATION', form.EMP_COMPANY, form.EMP_EMPLOYEE))== 'OCE' || trim(getDBField('EMPLOYEE', 'SEC_LOCATION', form.EMP_COMPANY, form.EMP_EMPLOYEE))== 'OCEDRE' ) Or more ideally, for performance, use a variable: var locat = trim(getDBField('EMPLOYEE', 'SEC_LOCATION', form.EMP_COMPANY, form.EMP_EMPLOYEE)); if(locat== 'OCE' || locat == 'OCEDRE' )