6/30/2025 5:29:55 PM
|
|
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!
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.
|
|
|
|
Hide fields using javascript
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 |
|
|
|
Re: Hide fields using javascript
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.
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|