Skip to content

Visitor info is not being set in the offlineForm #101

Open
@gabrielperales

Description

@gabrielperales

I think this issue is related to the Zendesk Chat SDK and not to this repo, but I'm opening the issue here to see if anyone has the same issue or if somebody knows how to tackle it.

Right now I'm starting the chat with this configuration:

    ZendeskChat.startChat({
      name: userAttributes.name,
      email: userAttributes.email,
      phone: userAttributes.phone_number,
      behaviorFlags: {
        showAgentAvailability: true,
        showChatTranscriptPrompt: true,
        showPreChatForm: true,
        showOfflineForm: true,
      },
      // The preChatFormOptions are optional & each defaults to "optional" if omitted
      preChatFormOptions: {
        department: 'required',
        name: 'hidden',
        email: 'hidden',
        phone: 'hidden',
      },
    })

So the showOfflineForm is set to true, and the preChatFormOptions are setting to avoid asking for name and email, and I'm also setting the name and the email of the visitor, but when there isn't an agent online the offline form is still asking for name and email.

You can see what I say in this picture:

IMG_AF9C6A3BDC80-1

Looks like there are more people having the same issue but Zendesk support is useless: https://develop.zendesk.com/hc/en-us/community/posts/360051090313-iOS-Chat-SDK-v2-pre-fill-offline-form

I don't know if I can solve the issue implementing the method sendOfflineForm. I'm actually implementing it here just in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream-issueIssue is caused by bugs or behavior differences in Zendesk Libraries - Please report to them!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions