The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Display company name instead of first & last - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Display company name instead of first & last (/showthread.php?tid=1576) |
Display company name instead of first & last - KevinACrider - Aug 31st, 2011 In the administration section, is it possible to refer to clients by their company name and not their first & last name. I started to go through the code and make these changes but not only is it tedious, I will also lose the changes any time I do an upgrade. I'm hoping there is an easier solution. RE: Display company name instead of first & last - Ben - Aug 31st, 2011 Hi Kevin, I'm afraid not... as you noticed, there are a *LOT* of references in the code. The client's name is what's used to identify them. What you could instead... (and here we're into hack territory), is just store the company name in the First & Last name fields. That would make it show up in the interface. Ignore the other "Company Name" field. To store the First & Last Name, use the Extended Client Fields module to create two new fields for the name. Not ideal, I know - but it's the least awful solution I can think of. ![]() - Ben RE: Display company name instead of first & last - KevinACrider - Aug 31st, 2011 We used to do that with the older 1.x versions but it got really confusing. As we would hire new clients, they would just enter the peoples names and the list got all out of wack. This is an odd request, and one I don't expect to get much priority if even accepted, but how feasible is it to just move the company_name field from the account_settings table to the accounts table so it is populated in the $clients array anytime you are grabbing first & last names. Then I can just swap out the name fields for the company_name fields. As it is right now, for example on the form setup page, when the list of clients is populated it's using the search function and doesn't pull in the settings like the ft_get_client_info function does. Obviously you already know this, I'm just thinking "out loud". |