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?
Issue with TicketFreeText1 field
-
- Znuny newbie
- Posts: 16
- Joined: 16 Jul 2011, 02:19
- Znuny Version: 3.0
- Real Name: Sunyl
- Company: DDC
-
- Znuny newbie
- Posts: 16
- Joined: 16 Jul 2011, 02:19
- Znuny Version: 3.0
- Real Name: Sunyl
- Company: DDC
Re: Issue with TicketFreeText1 field
Never mind its resolved...The field works when you do
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:
May be its not the best way to do it but it works for me
Hope that helps to others..
Thanks,
Sunyl
Code: Select all
$Data{"TicketFreeKeyField1"}
<div class="Field">
$Data{"TicketFreeTextField1"}
</div>
<div class="Clear"></div>
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
-
- Znuny expert
- Posts: 250
- Joined: 12 Oct 2010, 01:35
- Znuny Version: 3.0.9
- Company: LRS Health
Re: Issue with TicketFreeText1 field
It shouldn't really matter what you do, as long as the $Data{"TicketFreeTextField1"} is there.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>
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

[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText