Need to add new field under customer create

Moderator: crythias

Post Reply
sanojs
Znuny newbie
Posts: 20
Joined: 07 Jan 2022, 12:48
Znuny Version: 6.3.0
Real Name: sanoj
Company: Saturn

Need to add new field under customer create

Post by sanojs »

Hi team,

I am looking for an option to add a new field named "Customer Name" when creating a new customer user (similar to first name,last name etc).

I have tried few things under system configuration

Please find attached a screenshot.

Thanks
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Need to add new field under customer create

Post by reneeb »

You need to copy the "$Self->{CustomerUser} = ..." Part from Kernel/Config/Defaults.pm (https://github.com/znuny/Znuny/blob/64e ... s.pm#L1448 up to line 1557) to Kernel/Config.pm and change the "Map".

I would use a dynamic field for that. Create a text dynamic field for customer user.

After that you have a line to the "Map" like https://github.com/znuny/Znuny/blob/64e ... s.pm#L1546 , but remove the "#" from the line and replace "Name_X" in that line with the name of the dynamic field you've created.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
sanojs
Znuny newbie
Posts: 20
Joined: 07 Jan 2022, 12:48
Znuny Version: 6.3.0
Real Name: sanoj
Company: Saturn

Re: Need to add new field under customer create

Post by sanojs »

Thanks for the reply

Let me try and update you
Post Reply