how to mandatory any field

Moderator: crythias

Locked
shivendra
Znuny newbie
Posts: 99
Joined: 26 Nov 2012, 08:27
Znuny Version: 3.1.10
Real Name: shivendra
Company: seml

how to mandatory any field

Post by shivendra »

1>My company's requirement is to mandatory some field like dynamic field inside customer new ticket page coz user's are not giving proper information in ticket.
so how can i do this field mandatory .

2> also is it possible to display some text inside Richtext editor of customer new ticket.
Like disclaimer or Regards.So they have to enter thier name etc. inside editor.

Pls. guide
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: how to mandatory any field

Post by reneeb »

1) Goto SysConfig Group "Ticket" subgroup "Frontend::Customer::Ticket::ViewNew" and edit option "Ticket::Frontend::CustomerTicketMessage###DynamicField". Set value for all mandatory dynamic fields to "2" (see explanation of that config option)

2) Create your own config file in Kernel/Config/Files (see any of the XML files to see how they should look like) and add a new option for the default text. Edit Kernel/Modules/CustomerTicket/Message.pm to get the default text from config when no "Body" is given (hint: do it right after getting some parameters with "GetParam").
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
shivendra
Znuny newbie
Posts: 99
Joined: 26 Nov 2012, 08:27
Znuny Version: 3.1.10
Real Name: shivendra
Company: seml

Re: how to mandatory any field

Post by shivendra »

thanks step help for me........


trying 2nd one
Locked