Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Hide specific value from dropdown on form - help center using javascript



Gepostet 14. Nov. 2023

Hi All,

Is it possible to hide the a specfic value from the dropdown list on the form (help center) using javascript.

Currently I tried and even though the value is not showing up element (developer console), but I can still see the value on front end form.

this is my current code:

if(HelpCenter.user.role == 'anonymous' || HelpCenter.user.role =='end-user' || HelpCenter.user.role =='manager')
    {
      $('#request_issue_type_select option[value="13504813503517"]').remove(); 
    }


1

1

1 Kommentar

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hey Amit,

This should definitely be possible. Have you tried waiting for the document to fully load before the if statement is executed?

1


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post