Muralidharan BS
Mega Sage
Mega Sage

Hide catalog forms and categories in Now mobile

 

Catalog Forms

Many forms which are very complex not necessarily needed in the now mobile. So it is better to switch them off for mobile use. 

There is a system property available to toggle the availability, by default the property is set to "true" which means desktop-only forms will also be available in mobile. Once the property is turned off, head to the catalog form and mark the availability to "mobile" or both "desktop and mobile". This will restrict the forms based on devices now. 

Property name - glide.sc.mobile.include_desktop_only_items

                       find_real_file.png

When users search for a form, the "desktop only" forms also show up but clicking on it returns a message - the form is unavailable in moble. To hide the forms from the search then the below property has to be updated to "no_discover"

Property name - glide.sc.mobile.unsupported_discover 

 

Categories

The categories are displayed based on the catalog and even if the category is empty, it still shows up in the browse section of the app. This can be hidden by adding user criteria to the category. Navigate to sc_category_user_criteria_mtom and create an entry for the respective category. In the user criteria, I have added to check if a user is from mobile then hide if not show the category. This will hide users viewing the specific category in the mobile space.                                      

var mob = gs.isMobile();
if(mob)
	answer = 'false';
else
	answer = 'true';	

 

 

Hope it helps!

Thanks!

Murali

Version history
Last update:
‎05-15-2021 12:00 AM
Updated by: