Just a quick post about how you can control visibility of a server control on a SalesLogix web page using the Style attribute. The Style attribute is a bit different that using the control’s Visible property.
Setting a control’s Visible property to false causes the page to be rendered without the control. Meaning that if you want to access the control client side, or what-not it will not be available.
Using the Style attribute still causes the control to be rendered on the page, just not visible.
To hide a control you can use something like this
MyTextBoxControl.Style[“Display”] = “none”;
To show the control you can do something like this:
MyTextBoxControl.Style[“Display”] = “”;
Simple. This should work with any web server control, like Text boxes, Grids, etc.
Note that the SalesLogix quick forms render a lot of controls as two separate controls, like a label control and a text box control. You would need to set the Style property of both controls.