diff --git a/admin/admin_settings.php b/admin/admin_settings.php index 488edd3f..2cfe2a9c 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -1529,7 +1529,6 @@ if ( defined('HESK_DEMO') ) '.$hesklang['date_custom_field'].' + +
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php index 27c5e46f..fa78f714 100644 --- a/admin/admin_settings_save.php +++ b/admin/admin_settings_save.php @@ -490,7 +490,7 @@ for ($i=1;$i<=20;$i++) $set['custom_fields'][$this_field]['value'] = 'cc'; } - if (!in_array($set['custom_fields'][$this_field]['type'],array('text','textarea','select','radio','checkbox','date','multiselect','email'))) + if (!in_array($set['custom_fields'][$this_field]['type'],array('text','textarea','select','radio','checkbox','date','multiselect','email','hidden','readonly'))) { $set['custom_fields'][$this_field]['type'] = 'text'; } diff --git a/admin/options.php b/admin/options.php index 9c4f155d..4fa05066 100644 --- a/admin/options.php +++ b/admin/options.php @@ -120,6 +120,44 @@ switch ($type)

'; break; + case 'hidden': + echo ' + +

'.$hesklang['hidden_custom_field_help'].'

+ + + + +
'.$hesklang['value_colon'].' +
+

+ '; + break; + case 'readonly': + echo ' + +

'.$hesklang['readonly_custom_field_help'].'

+ + + + +
'.$hesklang['value_colon'].' +
+

+ '; + break; case 'textarea': if (strpos($query,'#') !== false) { diff --git a/language/en/text.php b/language/en/text.php index cc444a5e..f06ebf4f 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -31,6 +31,11 @@ $hesklang['screen_resolution'] = 'Screen Resolution'; $hesklang['display_user_agent_information'] = 'Show user agent'; $hesklang['display_user_agent_information_help'] = 'When enabled, staff will be able to view the operating system, browser, and screen resolution of the device used to create the ticket.'; +$hesklang['value_colon'] = 'Value:'; +$hesklang['hidden_custom_field'] = 'Hidden text field'; +$hesklang['hidden_custom_field_help'] = 'This input is the same as a text field; however this value cannot be changed and will not be visible to the user.'; +$hesklang['readonly_custom_field'] = 'Read-only text field'; +$hesklang['readonly_custom_field_help'] = 'This input is the same as a text field; however this value cannot be changed, but will be visible to the user.'; // ADDED OR MODIFIED IN Mods for HESK 2.4.0 $hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';