Recent searches
No recent searches
Android SDK - Hiding email and username field from the "Contact Us" screen
Posted Aug 20, 2024
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 comments