Solved

Script to suppress a web site field

Posted on 2007-11-30
2
238 Views
Last Modified: 2010-04-16
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

0
Comment
Question by:BasilFawlty001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20384213
add this code to footer
<script type="text/javascript">
    document.getElementById('partner').style.display = 'none';
</script>

Open in new window

0
 

Author Comment

by:BasilFawlty001
ID: 20384309
Perfect.  Thanks.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question