Infor CRM Web Client (Formerly Saleslogix) – Changing Label Appearances on Quick Forms

 I wrote previously about setting a label’s appearance on a quick form using server side code.  I wanted to update it quickly with another way of doing it via javascript.

On a form load event you can inject javascript like so:

string script = @”                               
                var x = document.getElementById(‘” + RegistrationID_lbl.ClientID + @”‘);
                if(x) {x.style.color=’Red’;}
                x = document.getElementById(‘” + RegistrationID2_lbl.ClientID + @”‘);
                if(x) {x.style.color=’Red’;}
                “;               
ScriptManager.RegisterStartupScript(Page, GetType(), “FXStrings”, script, true);

Or you can do it like before:

RegistrationID_lbl.Style[“Color”] = “Red”;
RegistrationID2_lbl.Style[“Color”] = “Red”;

ABOUT THE AUTHOR

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) news and product updates!

You have Successfully Subscribed!