How to assign a value to ticket "Body"

Moderator: crythias

Locked
Kalavathi
Znuny newbie
Posts: 1
Joined: 27 Apr 2013, 10:00
Znuny Version: 3.2.3
Real Name: Kalavathi
Company: Daisy Infotech

How to assign a value to ticket "Body"

Post by Kalavathi »

I have a java script that does some computation and I placed it in AgentTicketPhone.dtl

When ticket is submitted, I want this java script to be called and assign the computed value to message body ("Body" variable)

Can someone help me with this?

Thanks
Kalavathi
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 assign a value to ticket "Body"

Post by reneeb »

Code: Select all

$('#RichText').val( 'new value' );
if you want to place it in the editor

Code: Select all

CKEDITOR.instances.RichText.setData( 'new value' );
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
Locked