[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Script to suppress a web site field

Posted on 2007-11-30
2
Medium Priority
?
255 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

656 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