Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2012, 11:11 PM
erie erie is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Default [ask] customize osticket form

hi bro.. i do some customize for osticket web form.. put 3 additonal inputbox and i already add 3 row in ticket table in database and make some customize in class.ticket function create and show.. and it normally work in web form..
but after i customize this,i find my fetch email using pop3 doesnt work anymore..
it works fine when i havent customize it..

does anyone know why this happen? do i still need to customize something to make this email fetch work?
please help me..
Reply With Quote
  #2  
Old 07-03-2012, 12:10 PM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,600
Default

When a ticket is opened via email it doesn't have a value for the fields that you added. You have to tell OSTicket what the default values for those fields are, or set them as not required. If you open include/class.mailfetch.php circa line 239 you can add defaults there.

I added fields called Agency and Program and have the following there:

Code:
$var['agency']="45";
$var['program']="10";
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote
  #3  
Old 07-03-2012, 12:17 PM
erie erie is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Default

Quote:
Originally Posted by ntozier View Post
When a ticket is opened via email it doesn't have a value for the fields that you added. You have to tell OSTicket what the default values for those fields are, or set them as not required. If you open include/class.mailfetch.php circa line 239 you can add defaults there.

I added fields called Agency and Program and have the following there:

Code:
$var['agency']="45";
$var['program']="10";
hi.. after i set the addtional field as not required.. the fetch email is work fine now..
but actually i want this 3 fields to set as required,so user must input these 3 fields when using the web form..
and i dont need the value of these 3 addtional field when ticket is opened via email.
so how can i set these 3 addtional fields to required and the mail fetch still work?
Reply With Quote
  #4  
Old 07-03-2012, 12:22 PM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,600
Default

Set them back to being required, and setup the defaults like I posted.
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote
  #5  
Old 07-03-2012, 12:45 PM
erie erie is offline
Junior Member
 
Join Date: May 2012
Posts: 6
Default

Quote:
Originally Posted by ntozier View Post
Set them back to being required, and setup the defaults like I posted.
are the default value will show in view ticket ??
ex:if i have 1 addtional field 'country' and i set it as required and set the default like ur said as 'us'
and when user open ticket via email are the country field in viewticket will show 'us' ??
Reply With Quote
  #6  
Old 07-05-2012, 09:57 AM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,600
Default

No.

Setting the default like I described is only for EMAILED tickets.

Quote:
Originally Posted by erie View Post
are the default value will show in view ticket ??
ex:if i have 1 addtional field 'country' and i set it as required and set the default like ur said as 'us'
and when user open ticket via email are the country field in viewticket will show 'us' ??
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:55 AM.