Removing the 'contact support' button when a search returns no results in the Support SDK v1

Note: This article does not cover the Support SDK v2.

By default, the Support SDK allows your end-users to create a request if their Help Center search returns no results. In this article we'll show you how to disable this contact option.

This feature is aimed at customers who do not want to show any contact options in their Help Center at all.

Support SDK Versions

The configuration shown in this article is for version 1.7 and higher of the Support SDK. If you are using an earlier version, you must first upgrade to use this feature.

Read our v1.7 announcement here . Learn how to upgrade to v1.7 in our Getting started (Android) and Getting started (iOS)) documentation.

Android

A floating action button (FAB) is shown by default when end-users access the Help Center. This also appears when a search returns no results.

To hide the FAB, use the following code:

new SupportActivity.Builder()
.showContactUsButton(false)
.show(this);

iOS

A 'Contact us' button is shown by default in the navigation bar when end-users access the Help Center. An additional, in-line button appears when a search returns no results.

To hide the navigation bar button, use the following code:

Objective-C

[ZDKHelpCenter setNavBarConversationsUIType:ZDKNavBarConversationsUITypeNone];

Swift

ZDKHelpCenter.setNavBarConversationsUIType(ZDKNavBarConversationsUIType.None)

To hide the in-line button, use the following code:

Objective-C

ZDKHelpCenterOverviewContentModel *contentModel = [ZDKHelpCenterOverviewContentModel defaultContent];
contentModel.hideContactSupport = YES;
[ZDKHelpCenter pushHelpCenterOverview:self.navigationController withContentModel:contentModel];

Swift

let contentMondel = ZDKHelpCenterOverviewContentModel.defaultContent()
contentModel.hideContactSupport = true
ZDKHelpCenter.pushHelpCenterOverview(self, withContentModel: contentModel)