react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

Visitor info is not being set in the offlineForm

Open gabrielperales opened this issue 5 years ago • 2 comments

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.

gabrielperales avatar Feb 04 '21 18:02 gabrielperales

I am just here to confirm the same issue using Zendesk Chat V2 SDK using custom providers on Flutter portability, Zendesk does not help to fix the issue on their side

KohlsAdrian avatar Jun 08 '21 13:06 KohlsAdrian

Any progress here?

lfalcao avatar Aug 25 '21 18:08 lfalcao