5 댓글

  • Erica Girges
    Zendesk Developer Advocacy
    Hi Ravindranath,
     
    Dropdown isn't a supported control type within the setting properties. If you wanted to share more about your use case, I might be able to provide an alternate solution.
     
    Best,
     
    Erica 
    1
  • Ravindranath Noolu

    Erica Girges

    We are building a UI form in a sidebar app in which we went to control some actions based on agent's role. The plan is to create a kind of access control mapping about what custom attributes are be editable based on agents role. The deployment page has "Enable Role Restrictions" and "Enable Group Restrictions" that shows up automatically. We want to add couple of parameters replicating the dropdown selection behavior and show/hide some UI elements based on the selected Role. Is there a way to do it?

    0
  • Erica Girges
    Zendesk Developer Advocacy
    Hi Ravindranath, 
     
    Are you looking for the agent to select their own role plus additional values? Or are you only looking to add additional parameters after enabling role restrictions that affect the UI elements? Also, are these role specific parameters? 
     
    My first thought is if this is something that won't be changing once installed (which I assume wouldn't be since it's linked to an agent's role), I would look at maybe adding it as a requirement? You can check out how to do that here.
     
    If you feel that doesn't fit your needs or my interpretation of your use case is incorrect definitely let me know.
     
    Best,
     
    Erica
    0
  • Ravindranath Noolu

    Thanks for your response, let me ask my question in a different way.

    We have a sidebar app in which there are bunch of html form elements. We want to control the edits of those elements based on the agent roles. So we basically need to define the mapping like which element can be edited by who. I thought to define those role and element based mapping in the manifest file just like Zendesk adds "Enable Role Restrictions" and "Enable Group Restrictions" dropdowns so that they can be easily configured and fetched from ZAFClient's metadata.settings in the code

    So my custom mapping element would be like "Enable FirstName Restriction", "Enable LastName Restriction" which has a dropdown that can be multi selected with agent roles. 

    Is there way to configure this setting in manifest.json file 

     

    0
  • Erica Girges
    Zendesk Developer Advocacy
    Hi Ravindranath,
     
    Thanks for clarifying, since dropdown isn't a supported parameter and you're looking for a multi-select capability it might be best to use checkboxes for this. You could have multiple checkbox parameters that allow the admin to uniquely define which form elements are enabled for each agent individually when installing the app. Once installed, within the app you could use client.metadata() to retrieve the setting values for those parameters to either enable or disable specific form elements.
     
    Hope this helps!
     
    Erica
    0

댓글을 남기려면 로그인하세요.

Zendesk 제공