updateSettings API for prefilling fields

3 Comments

  • Thomas Verschoren
    Comment actions Permalink

    Hey,

     

    Your code is correct but that seems to be a bug in the updateSettings API for the Widget

    Anything other than "fields" gets updated, but if you call fields, or ticketForms >> fields it does not work.

    ---

    If you call the code directly in zESettings it works

    <script type="text/javascript">
      window.zESettings = {
        webWidget: {
          fields: [
    {
    id: 'description',
    prefill: {
    '*': 'My field text'
    }
    }
    ] } }; </script>
    0
  • Grant Lonie
    Comment actions Permalink

    Hello, this does not resolve the issue. Doesn't seem to be a way to update prefill for custom fields. See this issue as reference.

    0
  • Joseph May
    Comment actions Permalink

    Thanks for the link to the other issue, Grant. I will be looking into it.

    0

Please sign in to leave a comment.

Powered by Zendesk