How to hide dropdown field value in the request form for End User ?
Most Engaged Newbie of the Year - 2021
Publicado 25 de nov. de 2021
Hello,
I would like to hide a specific dropdown field value in the request form for End User ?
How to proceed ?
Thank you
9
25
25 comentários
Alfredo Navarro
Hello Nicole,
The latest version of Zendesk Guide templates (V4) is based on React and it is using the Garden components. Basically you will need to re-implement this logic within react to filter out those options that you need to hide before passing the data to the drop-down component. This approach is cleaner and also offers many other possibilities of customization.
I hope that this information helps.
Best regards, Alfredo
0
Nicole
Not sure if anyone has suggestions here. I have coding that hid two forms from the dropdown when submitting a new request. This has worked previously, but was just notified that the options are now appearing again. I know ZD has been going through quite a few updates recently, I'm wondering if the code was somehow affected. What I currently have in use:
Does anyone have thoughts on this or can possibly help get these two forms hidden again? Thanks!
0
Andreas Eichert
Here is an example on how you can modify the props component in the new_request_page.hbs to remove values from the dropdown:
You can log the object to find the values you want to keep and add additional logic based on which the dropdown is being filtered.,
0
Alfredo Navarro
Hello Dustin,
Version 4 of templates is based on React and basically you need to code the logic prior rendering the component, so totally a new implementation. The new version receives the form, fields and options as an object which provides the data to the React component. This new approach will give you much more flexibility in customizing your form and even you can use your own components.
I hope that this information helps.
Best regards, Alfredo
1
Dustin Swayne
I was able to get this to work in earlier versions of the Copenhagen template but with the latest version it looks like they are using dropdown combo boxes and list boxes to display the options and it is no longer using the ul or li options. Has anyone found a fix for the version 4 template with these changes? 1263169183150
0
Max McCal
Hey, all —
It came to my attention that there has not been any official comment on this from Zendesk Product. This kind of specific, granular control is definitely a good example of where we want to take our permissions over time, but not something in the roadmap at the moment.
0
Elif Ahmetoglu
Dear Zendesk Product team,
We would also like to express the need to hide a specific dropdown field values in the request form for end users.
Best regards,
Elif
0
Gabriel Manlapig
It looks like you're looking to create conditional ticket fields. You can create a ticket field that's dependent on another ticket field's options/response. The options available for your end-user or customer will be dependent on what they choose or select for the value on a different field.
We have a full guide that you can use for reference: Creating conditional ticket fields
I hope that helps!
0
Sanskar Kumar
Hello!
Is there any way, by which we can make dynamic dependent forms on zendesk?
To explain my use case better,
Suppose there are two custom fields of tagger type. Now, if I select an option in the first custom field, the second custom field shows/updates options corresponding to the option selected in the first field.
0
Paul Hughes
Hi 1263213666949
Thanks for helping and providing the code.
I was wrecking my brain trying to get this to work before I stumbled onto your code.
For anyone coming along now just to be clear here's what I done to get it working.
In the script.js file of my theme go to the bottom of the page and add.
Another thing to note:
In order to find the option id's you need to enable emulate a focused page in the console, you can google this or
open console in chrome
click the three dots top right
more tools - rendering
click on emulate a focused page
once you turn on emulate you can open the dropdown and it will stay open so you can hoover over the options and read the id.
example: you can see the id for this option is standard_request.
0
Entrar para comentar.