Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Hide fields from the Person Name control, is this possible?
Alex
Posts: 3
 
Hide fields from the Person Name control, is this possible?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Feb 10 9:13 AM
Hi!

Is it possible to modify the Person Name control to hide the Prefix and Sufix pick lists from the Person Name control??

Any thoughts will be higly appreciated

Thanks in advance!
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Hide fields from the Person Name control, is this possible?Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Alex
Posts: 3
 
Re: Hide fields from the Person Name control, is this possible?Your last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Hide fields from the Person Name control, is this possible?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Feb 10 2:52 AM
Glad it worked!

Thanks for posting the code for others to use.

Thanks,
Nick
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/30/2025 10:24:21 PM