Using placeholders Follow



  • Avatar
    James Q

    I'm wondering if this is possible...
    I want to add multiple custom fields in an organisation (let's call this one organisation a)

    Now let's say organisation b raises a ticket to us, in a drop box on the ticket for regarding I have an option for organisation a

    Now when that's selected I click save as pending, I then hit macro a,
    Macro a would add a public comment with some of the custom fields in organisation a as it knows this ticket had the regarding drop box selected as organisation a

    AM I making sense? The macro would need to look up the details for the organisation that's been selected in regarding drop box on the ticket, I can't have the details hard set in the macro otherwise I could end up with hundreds of macros

  • Avatar

    Could we use a ticket field placeholder in another ticket field in the same page to prefill the description for example?

  • Avatar
    Guy Kastner

    Using custom place holder for a ticket field with staff's name. The tag keeps appearing in lower case. Need it to show as a capital letter for the for the first character.

    Surely this can be achieved. How can I do this?

  • Avatar
    Andrew Mills

    Can we embed placeholders inside placeholders - or is that too insane?

    Looking to make a placeholder that selects the right dynamic content based on a the value of a custom field...




  • Avatar
    Colin Piper

    Andrew, not sure that would work but could you look at this problem in a different way? Could the ONE dynamic content return a different value based upon the content of that custom field? For example I have a DC item that returns a different string of text based upon the support level of a customer. I am just using liquid in the DC to perform an IS...ELSE or a CASE

  • Avatar
    Andrew Mills

    Hello Colin, that sounds workable... could you point me to an example?

    custom field is a region - (21 of them)

    • North
    • South
    • West etc...

    DC content to return is one or more email addresses - so could be;

    These are used in a HTTP or URL target to add as a CC


  • Avatar
    Colin Piper

    There is some good info on liquid here:

    Using the case statement

    {% case condition %}
    {% when 1 %}
    hit 1
    {% when 2 or 3 %}
    hit 2 or 3
    {% else %}
    ... else ...
    {% endcase %}

    The condition can be a custom field such as ticket.ticket_field_option_title_21917251 and the value is the text value of the dropdown field.
    {% case ticket.ticket_field_option_title_21917251 %}
    {% when "North" %}
    {% when "South" %},
    {% else %}
    {% endcase %}

    I don't have an example of adding a cc via the http target to hand but I posted a few examples yesterday of using the target and the format of the JSON string
  • Avatar
    Andrew Mills

    Great thanks Colin.

    I didnt expect you to get back so soon and actually waded my way through examples and made something almost identical.

    Working better now as seen here -

    Will add the URL target info too - for anyone wishing to replicate this.

  • Avatar
    Colin Piper

    Impressive work Andrew. Will have to find a reason to "borrow" this for my helpdesk... just because.

  • Avatar
    Bammesberger Thomas

    We would like to used values from a mult line text field on organisation level in our ticket forms (user view).  


    We have something like this:

    mutli line text field : organisation.products="product1,product2,product3"

    the ticket field (drop down) contains all products available like



    We would now like to access the value of the product field on org-level to reduce the number of options available in the drop down list (user view) using some AJAX function.

    But as the user isn't alowed to query the rest API for his organisations custom fields we end up with an auth error.


    Does anybody have an idea on how to solve this  ( for example using a kind of proxy script using an agent user) ?




  • Avatar
    Bammesberger Thomas

    Is there really nobody around who might give me an idea how to solve this problem?

  • Avatar

    "Every custom field has a unique ID or key. When you create a custom ticket field, the ID is automatically generate for you" should be "Every custom field has a unique ID or key. When you create a custom ticket field, the ID is automatically generated for you"

  • Avatar
    Deirdre Beach


    Is there any other way to access the custom field ID, other than going into setting?

    I have Admins who are able to create their own Macros, but do not have the ability to edit form fields. If they want to add a placeholder for a custom form ID they have to contact someone who has access to create and edit Form Fields, which is pretty annoying.



  • Avatar
    Anil Kumar (Community Member)

    Hello Guys,

    I'm using Dynamic Content placeholder in Form's title, it is working fine in Help Center and we are able to see translations as per selected language BUT don't know why placeholders are not showing translations in Agent Panel (Zendesk Support). 

    Here is the screenshot of that Dynamic content

    Unable to see the translated form title in Trigger's conditions and many other places.


    Is there something I need to follow?



  • Avatar
    Dan Ross

    Is there a way to URL encode placeholders?

    We want to send data to an external service, but things like {{ticket.title}} cause the request to fail because they're not encoded in the expected manner.


Please sign in to leave a comment.

Powered by Zendesk