6/30/2025 9:30:18 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.
|
|
|
| |
|
Re: Hide fields from the Person Name control, is this possible?
Posted: 12 Feb 10 10:24 AM
|
I'm not sure that this can be done server side - but the elements of the name control are on the page so you could hide them using javascript.
Add some code to run when the page is ready...
Something like this in a quickformload (that is a repaint event):
string code = @" $(document).ready(function() {
//Your JS code to hide the appropriate elements...
}); ";
Page.RegisterClientScriptBlock(this,GetType(),"scriptkey",code,true);
The syntax is off the top of my head so double check it...
P.s view source on the page to find the element ids for your javascript.
Cheers, Nick |
|
|
|
Re: Hide fields from the Person Name control, is this possible?
Posted: 17 Feb 10 12:56 PM
|
Thanks a lot Nick you are a genious, I added a C# obsolete code snippet on the Load event of the page and the elements were simply hided based on their Ids.
StringBuilder sbt = new StringBuilder(); sbt.AppendLine(" $(document).ready(function() { "); sbt.AppendLine(" $('#ctl00_TabControl_element_EmployeeAdmin_element_view_EmployeeAdmin_EmployeeAdmin_txtName_prefix').hide(); "); sbt.AppendLine(" $(\"[id='txtName_lblPrefix\\:']\").hide(); "); sbt.AppendLine(" $('#ctl00_TabControl_element_EmployeeAdmin_element_view_EmployeeAdmin_EmployeeAdmin_txtName_suffix').hide(); "); sbt.AppendLine(" $(\"[id='txtName_lblSuffix\\:']\").hide(); "); sbt.AppendLine(" }); "); ScriptManager.RegisterStartupScript(this.Page, base.GetType(), "HidePrefix&Suffix", sbt.ToString(), true);
Regards
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|