Editing ticket with Select Box

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Editing ticket with Select Box

Post by cwyenberg »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

When I edit a ticket with a Select Box, it reverts to the default selection. Is there a way to retain the original selection?

Thanks
Clint
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Editing ticket with Select Box

Post by Klemen »

If I go to Edit ticket the select box correctly shows the value.

Could you explain a bit more in detail what and where this is happening?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Editing ticket with Select Box

Post by cwyenberg »

Thanks for the quick response.

I create a ticket and use the select box to select a value (this is a required field for the customer).

From the admin area I select the ticket in question in order to edit (to add some shipping tracking detail). At that time I note that the select box has now reverted to the default option of "Click to select". If I do not change this before saving the original value is lost.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Editing ticket with Select Box

Post by Klemen »

I double-checked and this is not something that happens in my test help desk, the select box value remains selected correctly when editing a ticket.

Are you using original unmodified Hesk files? Do you have the latest version installed?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Editing ticket with Select Box

Post by cwyenberg »

I think I've discovered the issue. I had placed some additional blank spacing in some of the option lines in an effort to make things easier to find (similar to tabbing). However, I noticed that those blank spaces were not retained in the final select box but do still appear when creating/editing the custom field. I removed the excess spaces from one of the lines and selected that option in a new ticket. The selection was now retained when editing the ticket.
buxreptref
Posts: 3
Joined: Sat Feb 22, 2025 5:05 pm

Re: Editing ticket with Select Box

Post by buxreptref »

I had this very same same issue, but I did not find this post when searching for in the forum.
I searched for -custom field- and -drop down-. So I thought I add this post here, maybe it will help someone find this solution
Post Reply