Issue with TicketFreeText1 field

English! place to talk about development, programming and coding
Post Reply
sunylkumar
Znuny newbie
Posts: 16
Joined: 16 Jul 2011, 02:19
Znuny Version: 3.0
Real Name: Sunyl
Company: DDC

Issue with TicketFreeText1 field

Post by sunylkumar »

Hi,

I have added TicketFreeText1 to AgentTicketPhone.tdl, enabled it in SysConfig to Key=>ID, content => ID,
but when I submit the ticket form it doesn't write it in database.

Any ideas what I might be missing?

I tried adding a hidden field in the form like <input type=hidden name="ID" id="ID" value="QDATA{"TicketFreeText1"}"> but no luck. Don't know what exactly needs to be done...

Can anyone help me with this?
sunylkumar
Znuny newbie
Posts: 16
Joined: 16 Jul 2011, 02:19
Znuny Version: 3.0
Real Name: Sunyl
Company: DDC

Re: Issue with TicketFreeText1 field

Post by sunylkumar »

Never mind its resolved...The field works when you do

Code: Select all

   $Data{"TicketFreeKeyField1"}					
                    <div class="Field">
                        $Data{"TicketFreeTextField1"}
                    </div>
                    <div class="Clear"></div>
which generates/displays keyfield:valuefiled text boxes

I was replacing $Data{"TicketFreeKeyField1"} with <label for="ID"> $Text{"ID"}:</label> which doesn't work so this is what I did:

Code: Select all

 <label for="ID"> $Text{"ID"}:</label>
	        <div style="display:none">$Data{"TicketFreeKeyField1"}</div>						
                    <div class="Field">
                        $Data{"TicketFreeTextField1"}
                    </div>
                    <div class="Clear"></div>

May be its not the best way to do it but it works for me :)
Hope that helps to others..

Thanks,
Sunyl
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Issue with TicketFreeText1 field

Post by MichaelR »

sunylkumar wrote:

Code: Select all

 <label for="ID"> $Text{"ID"}:</label>
	        <div style="display:none">$Data{"TicketFreeKeyField1"}</div>						
                    <div class="Field">
                        $Data{"TicketFreeTextField1"}
                    </div>
                    <div class="Clear"></div>
It shouldn't really matter what you do, as long as the $Data{"TicketFreeTextField1"} is there.
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
Post Reply