Recherches récentes


Pas de recherche récente

John Kenny's Avatar

John Kenny

Adhésion le 20 juil. 2023

·

Dernière activité le 31 janv. 2025

Suivis

0

Abonnés

0

Activité totale

22

Votes

3

Abonnements

6

APERÇU DES ACTIVITÉS

Dernière activité effectuée par John Kenny

John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Hi - sorry for the late response. That doesn't seem to work for me. I took the Form ID from the URL of the form and entered into the code, but the tickets don't display the text I enter in the code.

 

An example of the URL where I get the firm id from is:  ‘https://test.zendesk.com/hc/en-gb/requests/new?ticket_form_id=123456789’

 

The code I used is below:

 

 if ($(""#request_issue_type_select").val() == "123456789") {Account Creation Form} else if ($("#request_issue_type_select").val() == "987654321") {Account Decommission Form} else { // Code to execute if neither condition is met (optional) // You can leave this empty if you don't need to handle the else case }

Afficher le commentaire · Publication le 31 janv. 2025 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a créé une publication,

Publication Q&A - Help center and community

Hi

I have 3 forms and would like each one to have a different hardcoded Description.

 

I have the following code already, but this is applied to all forms.

Is there a way to assign a different description by form ID or name similar to below?

 

 $('#request_description').val('System Access Form'); // Autofill description

Publication le 24 oct. 2024 · John Kenny

0

Abonnés

3

Votes

2

Commentaires


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Figure it out. I need a hyphen in the endif. Example below:

 

{% if ticket.ticket_field_123456015119 != null and ticket.ticket_field_123456015119 != "" %}
Door Alarm Code Details: {{ticket.ticket_field_8812386015119}}
{% endif -%}
{% if ticket.ticket_field_123455083151 != null and ticket.ticket_field_123455083151 != "" %}
Security Pass Details: {{ticket.ticket_field_123455083151}} 
{% endif -%}
{% if ticket.ticket_field_123459965327 != null and ticket.ticket_field_123459965327 != "" %}
New AU Mobile Number: {{ticket.ticket_field_123459965327}}
{% endif -%}
{% if ticket.ticket_field_123455900431 != null and ticket.ticket_field_123455900431 != "" %} 
New NZ Mobile Number: {{ticket.ticket_field_123455900431}} 
{% endif -%}

Afficher le commentaire · Publication le 15 févr. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Jakub

I appear to bet getting somewhere if I use != null and !=  "" like below.

However, when a line is not shown due to there being no data in the field, it leaves a blank line in it's place.

Would you know how I can make it so when a line is not shown, the space where it should be is also not displayed?

CODE:

{% if ticket.ticket_field_123456015119 != null and ticket.ticket_field_123456015119 != "" %}
Door Alarm Code Details: {{ticket.ticket_field_8812386015119}}
{% endif %}
{% if ticket.ticket_field_123455083151 != null and ticket.ticket_field_123455083151 != "" %}
Security Pass Details: {{ticket.ticket_field_123455083151}} 
{% endif %}
{% if ticket.ticket_field_123459965327 != null and ticket.ticket_field_123459965327 != "" %}
New AU Mobile Number: {{ticket.ticket_field_123459965327}}
{% endif %}
{% if ticket.ticket_field_123455900431 != null and ticket.ticket_field_123455900431 != "" %} 
New NZ Mobile Number: {{ticket.ticket_field_123455900431}} 
{% endif %}

 

Email example when New AU Mobile Number: is removed using Liquid Markup due to it having no data.........

Door Alarm Code Details: 54321

Security Pass Details: 12345

New NZ Mobile Number: +64 21 345 234

 

 

Afficher le commentaire · Modification le 15 févr. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Hi Jakub

I cannot seem to get it working with custom fields.

In the example below. The New AU Mobile Number field is blank (no data in the database) and the New NZ Mobile has a number in the field, however, the New AU Mobile Number text is still displayed on the email. Example also below.

 

{% if ticket.ticket_field_1234589965327 != null %}
New AU Mobile Number: {{ticket.ticket_field_1234589965327}}
{% endif %}
{% if ticket.ticket_field_123455900431 != null %} 
New NZ Mobile Number: {{ticket.ticket_field_123455900431}} 
{% endif %}

Email text below.....

New AU Mobile Number:

New NZ Mobile Number: +64 21 345 234

Afficher le commentaire · Modification le 15 févr. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a créé une publication,

Publication Q&A - Help center and community

Hi

I am looking for a way to hide placeholders from being emailed/triggered that have no data.

For example, if I want to email all the following but Tel has no data in the field; is there a way to 'tag' the line so it is not sent if there is no data associated with it?

Requester: {{ticket.requester.name}}
Tel: {{ticket.requester.phone}}  (HIDE THIS WHOLE LINE IF THE FIELD HAS NO DATA)
Email: {{ticket.requester.email}}

Modification le 13 févr. 2024 · John Kenny

0

Abonnés

3

Votes

5

Commentaires


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Jakub - sorry forgot to tag you on the above comment.

Please can you review it?

Thanks

Afficher le commentaire · Publication le 29 janv. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Thank Kuba

Seems to work fine on the form.

Is there a way to format the text on the requests page.

I.E the one the end user receives showing the request details.

Afficher le commentaire · Publication le 28 janv. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire


John Kenny a créé une publication,

Publication Q&A - Help center and community

Hi

Is there a way to change the font color of a specific field header and also the data entered (comment) into the field by field ID?

For example: I have field ID 12345678 with a header of 'User's Name'

The end user adds the name Joe Bloggs in the field comments

Can I have a Red for the header and Blue for the comment?

Thanks

Publication le 23 janv. 2024 · John Kenny

0

Abonnés

3

Votes

4

Commentaires


John Kenny a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

Thanks Brandon

I am trying to get this to work by adding your script to the script.js file.

I have jQuery already in my theme.

I have a dropdown menu - say field ID 54321

If the value is Yes I want to hide the attachment field, but this doesn't appear to work.

Here is my code below taken from what you kindly provided:

 

  $(document).ready(function() { // Replace 'custom_field_12345' with your actual custom field's ID 
    var customFieldSelector = '#request_custom_field_54321'; 
    // Function to show/hide the attachment field 
    function toggleAttachmentField() { var selectedValue = $(customFieldSelector).val(); 
    // Replace 'value_to_hide' with the value that should hide the attachment field 
    if(selectedValue === 'Yes') { $('label[for="request-attachments"]').hide(); $('#request-attachments').hide(); } else { $('label[for="request-attachments"]').show(); $('#request-attachments').show(); } }
    // Initial check in case the form is pre-filled or when the page loads 
    toggleAttachmentField(); 
    // Set up the change event listener 
    $(customFieldSelector).change(toggleAttachmentField); });

Afficher le commentaire · Publication le 18 janv. 2024 · John Kenny

0

Abonnés

0

Votes

0

Commentaire