Showing result of custom form field, that only set visible for staff only to public ticket view.

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
yogifazar
Posts: 4
Joined: Sun Jul 30, 2023 7:31 am

Showing result of custom form field, that only set visible for staff only to public ticket view.

Post by yogifazar »

Hi,

I need help to showing the result of custom field that set for staff only to public ticket view.
if i check in print view the result will be shown, but if i check in. /ticket.php the result still hide.

please help.

thank you
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Showing result of custom form field, that only set visible for staff only to public ticket view.

Post by Klemen »

Sorry, but I do not understand what you mean.

Can you show some real-life examples (screenshots) of what happens and what do you want to happen?
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
yogifazar
Posts: 4
Joined: Sun Jul 30, 2023 7:31 am

Re: Showing result of custom form field, that only set visible for staff only to public ticket view.

Post by yogifazar »

SOLVED
Last edited by yogifazar on Mon Jul 31, 2023 3:48 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Showing result of custom form field, that only set visible for staff only to public ticket view.

Post by Klemen »

Great, I do understand now what you mean.

Staff-only fields will never show on the public side - this is by design.

In your case, when you print it, it only shows because you are logged into Hesk as a staff member. If you open the ticket on another computer (or in a private/incognito browser mode), you will see that it does not show so your customers will NOT see these fields.

For the fields to show on the public side, you will need to:

1. create a PUBLIC custom field
- OR -
2. edit your ticket.php and /inc/print_template.inc.php files to show all kind of custom fields ($v['use'] == 1 and $v['use'] == 2). We don't provide support for such customizations, you will need to get help from a PHP developer if unsure how to edit PHP files.
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
yogifazar
Posts: 4
Joined: Sun Jul 30, 2023 7:31 am

Re: Showing result of custom form field, that only set visible for staff only to public ticket view.

Post by yogifazar »

Thank you, my problem solved.
Post Reply