SalesLogix web client: Showing and Hiding controls using the control’s Style attribute


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.


Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!