I need a function that will detect if the user is on the mobile app to conditionally show specific links.

Thank you.

Hi Jovvy,

Either you can do it by javascript or through media class where you can get the size of devices . Please find below link hope it's useful.



Hello Jovvy

If you are using Silk Ui, in the logic layer you can find under WebPatterns some functions that returns the device or if the user is in a specific device (like phone or tablet).

Also, there are a web pattern that works like an If in the web screen that shows the content depending on the devices you choose. 

Its called DisplayOnDevice.

Take a look here: https://silkui.outsystems.com/Patterns_Web.aspx#Web_Responsive_DisplayOnDevice


Eduardo Jauch