最近の検索


最近の検索はありません

Android SDK - Hiding email and username field from the "Contact Us" screen



投稿日時:2024年8月20日

Is it possible to hide the username and email requests on the “Contact Us” screen, so that the user is not required to add these, and the values can be added from VisitorInfo?

 

This is my set up:
Gradle/toml:

zendesk-messaging = "com.zendesk:messaging:5.4.0"

zendesk-chat = "com.zendesk:chat:3.4.0"

 

Application:

Chat.INSTANCE.init(applicationContext, "MyAccountKey")

 

Show messaging screen:

override fun setUpChat() {
    Chat.INSTANCE.setChatProvidersConfiguration(buildChatProvidersConfiguration())
    MessagingActivity.builder()
        .withEngines(ChatEngine.engine())
        .show(context, buildChatConfiguration())
}

private fun buildChatProvidersConfiguration() =
    ChatProvidersConfiguration.builder()
        .withVisitorInfo(buildVisitorInfo())
        .withDepartment(null)
        .build()

private fun buildVisitorInfo() =
    VisitorInfo.builder()
        .withName("MyName")
        .withEmail("myemail@gmail.com")
        .build()

private fun buildChatConfiguration() =
    ChatConfiguration.builder()
        .withPreChatFormEnabled(true)
        .withNameFieldStatus(PreChatFormFieldStatus.HIDDEN)
        .withEmailFieldStatus(PreChatFormFieldStatus.HIDDEN)
        .build()
 

On the “Contact Us” screen, I get a prompt from the Answer Bot. I add my response, then I am asked for my name (which I can skip) and my email (which I cannot skip)
How do I configure this so that neither name or email are requested on this screen?


0

0

0件のコメント

サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿