Page 1 of 1

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

Posted: Sun Jul 30, 2023 7:46 am
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

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

Posted: Sun Jul 30, 2023 2:04 pm
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?

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

Posted: Mon Jul 31, 2023 6:49 am
by yogifazar
SOLVED

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

Posted: Mon Jul 31, 2023 9:12 am
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.

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

Posted: Mon Jul 31, 2023 3:49 pm
by yogifazar
Thank you, my problem solved.