Hiding a customized field from end user eyes
Moderator: mkoch227
Hiding a customized field from end user eyes
Hello
Is it possible to hide a (one or many) customized field(s) from the end users ?
Thanks
Gaston
Is it possible to hide a (one or many) customized field(s) from the end users ?
Thanks
Gaston
Re: Hiding a customized field from end user eyes
Open ticket.php in notepad and find
and change it to
Similarly change
to
This should hide the first, second and third custom field from the customer. You can change the list by modifying 'custom1', 'custom2','custom3'.
Code: Select all
$v['use'] && $v['place']==0
Code: Select all
$v['use'] && $v['place']==0 && !in_array($k,array('custom1','custom2','custom3'))
Code: Select all
$v['use'] && $v['place']
Code: Select all
$v['use'] && $v['place'] && !in_array($k,array('custom1','custom2','custom3'))
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
Hello
Doesn't seem to make it.
Just to make sure, the targeted page was the one used by a end user to submit a ticket (submit_ticket.php).
"http://domain.com/hesk/index.php?a=add&language=English"
Gaston
Doesn't seem to make it.
Just to make sure, the targeted page was the one used by a end user to submit a ticket (submit_ticket.php).
"http://domain.com/hesk/index.php?a=add&language=English"
Gaston
Re: Hiding a customized field from end user eyes
Wait, you don't even want the customer to enter anything in custom fields when submitting a ticket?
Or do you want the customer to enter the details but not be able to see them afterwards?
Or do you want the customer to enter the details but not be able to see them afterwards?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
I want to be able to mark some custom fields as "internal". I mean that those fields won't appears in any client pages, essentially the page used to submit a new ticket and the page used to see the status of a request. "Not internal" (or public) fields would be accessible on these pages.
Sorry if I was not clear.
Gaston
Sorry if I was not clear.
Gaston
Re: Hiding a customized field from end user eyes
Try modifying the same code in the index.php - so you have that code modified in both index.php and ticket.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
What was doing the modification in index.php ?
Gaston
Gaston
Re: Hiding a customized field from end user eyes
Should be the same code in both files (the code I posted few replies back).
In index.php it will hide the fields from the "submit a ticket" form and in ticket.php it will hide the fields when the customer is looking at the ticket.
In index.php it will hide the fields from the "submit a ticket" form and in ticket.php it will hide the fields when the customer is looking at the ticket.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
That works perfectly
. Don't you think it should become a feature (a custom field being marked as hidden ?
Thanks
Gaston

Thanks
Gaston
Re: Hiding a customized field from end user eyes
Already added on my "to do" list for version 2.3 

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
Hi,
I have followed the above directions but can't seem to get it to work. After I apply the changes to both index.php and ticket.php, I get a white page? Any ideas why?
Here is what I inputted.
if ($v['use'] && $v['place']==0 && !in_array($k,array('custom3'))
if ($v['use'] && $v['place'] && !in_array($k,array('custom3'))
I have followed the above directions but can't seem to get it to work. After I apply the changes to both index.php and ticket.php, I get a white page? Any ideas why?
Here is what I inputted.
if ($v['use'] && $v['place']==0 && !in_array($k,array('custom3'))
if ($v['use'] && $v['place'] && !in_array($k,array('custom3'))
Re: Hiding a customized field from end user eyes
You get an error probably because you have PHP syntax error in the edited files. Try enabling debug mode in admin panel and see if you get any error messages then.
Also note that 'custom3' should be changed to the custom field number you wish to hide.
Also note that 'custom3' should be changed to the custom field number you wish to hide.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Hiding a customized field from end user eyes
I need this function too...only thing left is to edit it outside of the post itself...like in the main admin somehwere.
Dont need to click like 4 times before i can edit the field.
Dont need to click like 4 times before i can edit the field.