Hiding form selector in Guide

Beantwortet

3 Kommentare

  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Jonatha, copy the below code and paste it at the bottom of your style.css file.

    .form-field.select.optional {
    display:none;
    }

     

     

    Another way is, if you have two forms then you can hide your one form from the dropdown list-

    https://support.zendesk.com/hc/en-us/community/posts/4409217680410-Hiding-a-ticket-form-on-the-submit-a-request-page?page=1#community_comment_4409675092378

     

    Thanks

    Ifra

     

    1
  • Gavin

    Hi.  I want to block rendering the form selection field on one specific form only.

    Example -

    I have three ticket forms - A, B, and C.  I have already figured out how to hide form C from the drop-down list, so now the only way to access form C is via a link.  So far so good.  However once form C loads, I would like to block the form selection field from rendering on form C.  So the outcome is, you can only get to form C via a link, and when form C loads, you cannot select a different form.  However forms A and B should continue to render the form selection field.

    How can I accomplish this?

    0
  • Ifra Saqlain
    Community Moderator
    Zendesk Luminary
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Gavin・ギャビン,

     

    Add this script code to your script.js file:

    if (window.location.href.indexOf("0000000000") > -1) {
      document.querySelector('.form-field.request_ticket_form_id').style.pointerEvents = 'none';
    }

     

    0000000000 - Your C form ID where you wanna disable dropdown field to not select A and B form.

     

    If any confusion let me know :)

    Have a good day!

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk