onpointsystems Posted December 4, 2014 Share Posted December 4, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 4, 2014 Share Posted December 4, 2014 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> 0 Quote Link to comment Share on other sites More sharing options...
onpointsystems Posted December 4, 2014 Author Share Posted December 4, 2014 I will give that a try and let you know. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
onpointsystems Posted December 4, 2014 Author Share Posted December 4, 2014 Brian!, That worked perfectly. Do you happen to have the same for a drop down field? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 4, 2014 Share Posted December 4, 2014 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> 0 Quote Link to comment Share on other sites More sharing options...
onpointsystems Posted December 4, 2014 Author Share Posted December 4, 2014 That sir worked like a champ. The great thing about this is that we can disable a specific type of a field and still have the option to allow customer inputs for other types if we ever needed it. Brian!, again, thank you very much. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.