Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Hide fields using javascript
Tony Joanes
Posts: 71
 
Hide fields using javascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Mar 10 10:50 AM
I am playing around with the address control and trying to maniplulate some of the fields with JavaScript.

I have managed to set some default values using:

var txtBox = document.getElementById("controlid");
txtBox.value = "default";

What I can't seem to do though is hide some values or change label values. Has anyone managed to do this yet?

Thanks
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Hide fields using javascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Mar 10 3:56 PM
Use a tool such as the IE Developer Tools to explore the HTML Hierarchy.
Typically, an SLX Control is wrapped within a Division, this will help you find better alternatives into which how to manipulate the elements as they are rendered.
For instance, on a Lookup, the Value of the Text Box, is not the value of the lookup, so although you could modify the Text being displayed, you are not modifying the ID or Text of the item selected on the lookup. By exploring the object with a Reflector tool, and the IE Dev tool, you could figure out what child Elements contain the items you are looking for...


Also, with IE Developer Tools, you could add HTML Attributes or CSS Styles on the fly and see how they affect the control, if I get the desired effect, then I turn around and Implement the same attributes into the Javascript.
I am sure that there may be other tools out there that are better than IE Developer Tools, but it works for me and its free.


[Reply][Quote]
Tony Joanes
Posts: 71
 
Re: Hide fields using javascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Mar 10 5:24 AM
Thanks Raul, IE Developer tool has been a real help with this.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/30/2025 6:26:11 PM