Skip to main content

isMobile()

Last updated 16/09/2024

Example One

The following code only shows the customers when running in mobile mode.

Only show the customers when running in mobile mode
function SetCustomerFilter(five: Five, context: any, result: FiveError) : FiveError {
if (five.isMobile()) {
five.setVariable('ShowCustomers', true);
}

return five.success(result);
}