Creating conditional ticket fields



image avatar

Amy Malka

Zendesk Documentation Team

Edited May 21, 2025


2

65

70 comments

Hola José Luis,

Espero que estés muy bien. Siento la demora en responder a tu solicitud de soporte. Estamos experimentando un alto volumen de solicitudes y estamos haciendo todo lo posible para responder a cada una de ellas tan pronto como sea posible.

En relación con tu consulta, entiendo que deseas crear un formulario condicional, si es posible crear un despegable con los idiomas que tengas en tu cuenta de Zendesk como valores, y luego dependiendo del lenguaje, mostrar los campos de formularios que necesites. Pero recuerda que dichos campos deben estar ya vinculados al formulario. Para más información puedes visitar: 

Adición de campos personalizados a los tickets y formularios de solicitud de soporte

En relación con editar el CSS de los formularios, dicha configuración es limitada, pero puedes editar algunos valores dentro de los formularios de acuerdo a: 

Help center CSS cookbook  en los comentarios de esta documentación, hay otros usuarios editando los formularios, desafortunadamente, desde Zendesk no soportamos código personalizado. 

Por avisarme si tienes alguna duda o pregunta.

Un saludo, 

0


Hi Poli -
 
The first step is to create your dropdown fields (in your case, the product dropdown, and then the options fields for each product). Once those are created (making sure that you set them to be visible and editable by end-users), then you should be able to add conditions to your ticket form as explained in this article, to create the relationship between those fields.
 
If that explanation doesn't help, it might be worth contacting our support team directly, so they can step through the process with you: Contacting Zendesk Customer Support

0


Me gustaría mostrar un despregable con los idiomas para así poder usar un formulario u otro y que se pudiera informar el GRUPO para que los tickets vayan a un grupo en concreto, ¿es posible?

¿se puede personalizar el formulario mediante CSS o alguna forma?

0


I. Smit Hello!

Friendly links are possible with a bit of scripting. This requires jQuery to be installed. To do so, add the following function to your script.js file:

// Get all instances of {Text|url} -- example {My Link|www.google.com}
    $('.form-field p').each(function(){ 
        var raw = $(this).text();

        // Create array around brackets
        var result = raw.match(/\{(.*)\}/);

        // Only affect areass with matches
        if(result){ var text = result[1].split("|");

            // Build the link
            var link = '<a target="_blank" href="' + text[1] + '">' + text[0] + '</a>';

            // Replace html
            var newHtml = $(this).text().replace(result[1],link);
            newHtml = newHtml.replace("{",'').replace('}','');
            $(this).html(newHtml);
        }

    });

In our case, we wrap all of our jQuery functions in a jQuery function wrapper (this is optional - you just need to make sure it is all located within the document.addEventListener('DOMContentLoaded', function() function):

jQuery(function($){

functions here

});

Then, when editing your ticket fields to include help text, add links like so:

{friendly_title|http://www.example.com}

As an example:

visit our {support guide|http://www.example.com} for more information.

For your question about adding a block/disclaimer/etc, you can also use jQuery to append HTML to your ticket form when a certain ticket form is selected. This functionality also works on ticket fields. This allows you to use whatever HTML you desire, so you could craft a box, have it as text, etc. More information on that in Can I add a disclaimer to a specific ticket form in Help Center?

Some additional information can be found at Add Note and Warning boxes to your Guide articles, where you could add custom CSS and then wrap your text above in a wrapper that generates the box!

Hope this helps!

1


Hi Ashley,
 
Unfortunately at the moment, it does not support rich text formatting, and it's currently a limitation. One option you can do is to use URL shorteners if it's allowed by company regulations. 
 
You can post this as product feedback on our Support community product feedback page
 
Thank you!
 
 
Kind regards,
 

0


DJ Buenavista Jr.
Unfortunately, this option does not support rich text formatting. In addition, the link you show is fairly short. But imagine you want to link to a longer link, such as: 

"https://zoek.officielebekendmakingen.nl/resultaten?q=(c.product-area%253d%253d%2522officielepublicaties%2522)and(cql.textAndIndexes%253d%2522corona%2522+and+cql.textAndIndexes%253d%2522covid-19%2522+and+cql.textAndIndexes%253d%2522covid%2522)%20AND%20w. subrubriek==%22Antwoorden%20kamervragen%20van%20het%20lid%20Nicolai%20van%2026%20maart%202021%20inzake%20inzake%20quarantaine%20politici%22&zv=corona+covid- 19+covid&pg=10&col=&svel=PublicationDate&svol=Acurrent&sf=sr%7cAnswers+Chamber questions+from+the+Member+Nicolai+of+26+March+2021+involving+quarantine+politicians."

I know that there are URL shorteners. Only in some cases this is not allowed from company regulations.

Ashley Yau 

At Teleticket I have seen a solution where a yellow text block appears after selecting a particular form. Unfortunately, this is not a native feature in Zendesk. Such a text block could be used to point to a page, in your case "I want to claim warranty". 

 

1


Hi Ashley,
 
Unfortunately, you cannot use ticket forms in a condition for triggers or automation. However as a workaround, you can create a custom ticket field and use the text option and from there you can put the details and the link to the article from here. Kindly check the screenshot below for an example. 
 

 
After creating the custom ticket field, you need to add it to your ticket forms, and here's the sample of how it would look like on a ticket form.
 

 
Thank you and please don't hesitate to reach out anytime if you have any other questions or concerns.
 
 
 
 
Kind regards,

1


Hi There,

I would like to know if it's possible to add conditions on form level too? For example if I have enabled multiple ticket forms under one help center, end user will be asked to select a ticket form when they try to submit a request (As the picture attached)

Is it possible to add another option in the ticket form drop down list which will direct end user to articles instead of ticket form? E.g. Is it possible to add a new option "I want to claim warranty" but it will direct end user to read article instead of fill in a request form? Thank you

0


Hi Ryley 송치호,
 
Thank you for reaching out to Zendesk Support.
 
In regards to your concern, you can use the custom ticket fields that you have created as conditions on both Triggers and Conditions. 
 
You can check our articles below for more information:
 
About automations and how they work
About triggers and how they work
 
Thank you and have a wonderful day ahead!
 
 
Kind regards,

0


Hello-!

Is there a way to change the value of conditional field even if the conditional field is invisible?
I think I can use triggers or automation.. Is that correct? :)

Thank you in advance!

0


Sign in to leave a comment.