Using custom ticket fields and ticket forms with the Web Widget

Have more questions? Submit a request

42 Comments

  • John E. Parra J.
    Comment actions Permalink

    Aimee Spanier Can you show us one example more real of prefill data because we have one account with all characteristics for this and when it is implemented does'nt work, thanks for your help.

    0
  • Jessie Schutz
    Comment actions Permalink

    Hey John! 

    Can you show us the code that you're using? That might help us figure out what's going wrong.

    0
  • Guillermo Gette
    Comment actions Permalink

    Hi there,

    I have been trying to prefill the fields of the contact form and is just not working for me. Can you guys have a look at this https://jsfiddle.net/sb7tpqax/2/ and let me know if you can identify the problem?

    Thanks!

    0
  • Scott Dafforn
    Comment actions Permalink

    Hi everyone,

    I'm having the same issue as some others in this thread - I'm unable to prefill custom fields on a web widget. I've seen the documentation and the formatting advice earlier in this thread (which wraps properties in quotes and makes prefill an array), neither of which work. Is anyone able to prefill custom fields successfully?

    Here's my javascript:

    <script type="text/javascript">
    zESettings = {
    webWidget : {
    contactForm:
    {
    fields: [
    {
    id: "00000",
    prefill: {
    "*": "Foo"
    }
    },
    {
    id: "11111",
    prefill: {
    "*": "Bar"
    }
    }
    ]
    }
    }
    };
    </script>

    Thanks!
    0
  • Romona
    Comment actions Permalink

    Hi Guillermo,

    Thank you for letting us know. Our Dev team is currently investigating and working on a resolution to this issue. 

    We appreciate your patience as we work on this issue. 

    Thanks. 

    1
  • Scott Dafforn
    Comment actions Permalink

    Hi Romona,

    Was your dev team able to resolve this issue or give you a timeline for resolution?

    Thanks!

    0
  • Romona
    Comment actions Permalink

    Hi Scoff,

    Unfortunately, our team is still working on this issue. However, I would be more than happy to keep you updated on our progress. Simply open a Support ticket with this issue and we will update you the moment this is resolved. 

    Cheers. 

    0
  • Krassmann, Konstantin - COREDINATE DE-UFF
    Comment actions Permalink

    Hi, i cant prefill the custom fields either. 

    I think the problem is in the timing in my  situation, as i load the companies name after the ze script is loaded

    zE('webWidget', 'updateSettings', {
    contactForm: {
    fields: [
    {
    id: '360016317232', prefill: {'*': 'Werk 1 GmbH'}
    }
    ]
    }
    });

    The "updateSettings" doenst work here!

    0
  • Joe Beaudoin
    Comment actions Permalink

    Hello Konstantine,

    Thank you for your message!

    Most of what you have written there looks exact, but I wonder whether there's a discrepancy in how you are writing the first line. In the following document, zEsettings is used in place of what you have, zE with "update settings" to follow:

    https://developer.zendesk.com/embeddables/docs/widget/settings#fields

    The other thing we should consider is that this command is text field only, so I'd like to confirm that you aren't attempting to prefill a value for (say) a dropdown field.

    In the event you try to fix the syntax and have confirmed that the field type is a text, I'd love to hear back about this! Give that a shot and let us know here if that helps.

    Thanks again!

    0
  • Gef Faelden
    Comment actions Permalink

    Why is there no option to reorder the custom fields for the web widget? 

    0
  • Camila Carvajal
    Comment actions Permalink

    Is there a way to add tags to a custom form? similar to:

    window.zESettings = {
      webWidget: {
        contactForm: {
          tags: ['new_tag', 'next_new_tag']
        }
      }
    };



    0
  • Romona
    Comment actions Permalink

    Hi Camila, 

    You can create a Trigger that adds tags based on the contact form used on the UI side. Give that a try and if you have any additional questions, feel free to reach out to Support@zendesk.com.

    0

Please sign in to leave a comment.

Powered by Zendesk