Question

How to hide one values in dropdown field?

  • 30 April 2024
  • 1 reply
  • 27 views

Badge +1

What would be the script to hide one value from the ticket Type field on the customer portal?

E.g. to hide value ‘Complaint’ from the Type field.

 


1 reply

Badge +3

You’ll have to inspect the form to get the custom field attribute name. Then add a JavaScript on the submit ticket portal template 

 

<script type="text/javascript">
  document.addEventListener("DOMContentLoaded", function() {
          jQuery('#helpdesk_ticket_custom_field_type_selection_3014498 option[value="complaint”]').remove();

  });
</script>

 

 

 

 

Reply