Jump to content

Support Ticket Custom fields read only


onpointsystems

Recommended Posts

Hi,

We can add custom fields to tickets but is there a way to make them read only on the clients end?

 

Pretty much our ticket custom fields are used to track time spent on the actual ticket and works great for existing tickets but when the customer creates a new ticket from the portal the custom fields are editable. This is why would like to make ticket custom fields read only.

 

Thanks in advance.

Link to comment
Share on other sites

if it's a textbox, you could modify portal/supportticketsubmit-steptwo.tpl and replace...

 

<td>{$customfield.input} {$customfield.description}</td>

with...

<td>{$customfield.input|replace:'/>':'disabled="disabled" />'} {$customfield.description}</td>

or

<td>{$customfield.input|replace:'/>':'readonly />'} {$customfield.description}</td>

Link to comment
Share on other sites

Brian!,

That worked perfectly. Do you happen to have the same for a drop down field?

you can use disabled again, and use multiple replaces to disable text boxes, dropdowns and textareas - the first replace also disables checkboxes too.

 

<td>{$customfield.input|replace:'/>':'disabled="disabled" />'|replace:'<select ':'<select disabled '|replace:'<textarea ':'<textarea disabled '} {$customfield.description}</td>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated