Link to home
Start Free TrialLog in
Avatar of BasilFawlty001
BasilFawlty001Flag for Canada

asked on

Script to suppress a web site field

We use an online ERP/CRM system that has an ecommerce site built in.  I have limited access to the code that creates the site.  On customer registration, there is a field called "Partner Code" that I would like to hide.  I can't do it in the software but I can add code to the site's footer.  I'm hoping that will work to hide the field.  I attached the code from that area.  The field id is "partner".
<TD nowrap>
<span style="white-space: nowrap" id="partner_fs">
<input value="" maxlength="20" type="text" class="input" onChange="setWindowChanged(window, true);this.isvalid=validate_field(this,'text',true,false);this.checkvalid=false;if (this.isvalid) this.isvalid=validate_textfield_maxlen(this,20,true,false);return this.isvalid;" onFocus="if (this.isvalid == true || this.isvalid == false) this.checkvalid=true;" size="20" name="partner" onBlur="if (this.checkvalid == true) {this.isvalid=validate_field(this,'text',false,false);} if (this.isvalid == false) {this.focus(); this.select(); return this.isvalid;}" id="partner"></span></TD></TR>
<tr>
<td class='smalltext'>&nbsp;</td><td class='smalltext'>If you have a partner or affiliate code, enter it here</td></tr>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Sinoj Sebastian
Sinoj Sebastian
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BasilFawlty001

ASKER

Perfect.  Thanks.