최근 검색


최근 검색 없음

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개

댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물