Skip to main content
vinays024987
October 11, 2023
Question

Site Page Visibility

  • October 11, 2023
  • 6 replies
  • 0 views

Is there a way I can set visibility of a site page based on "DESKTOP" or "MOBILE".
Both a!isNativeMobile and a!isPageWidth do not work on site object.

    6 replies

    harshitb6843
    October 11, 2023

    If the above two are not working, then I don't think there is a way to do that. 

    October 11, 2023

    I have tried a!isPageWidth and it is working fine for me. Here "MOBILE" is not the key value. Please refer to the below screenshot. Try using "PHONE"

    vinays024987
    October 11, 2023

    It is not working irrespective of that. These functions only work on interface level. 
    Is there any way you can suggest to configure visibility of a site page based on the device I am using (Phone or desktop)?

    October 11, 2023

    Nope, I have tried at site level. Here I have attached a sample code. 

    1. Before setting up, the page visibility.

    2. Setting up the visibility at the site page level

    3. After the setup. Since I have mentioned as PHONE, the report page is not visible to the desktop user.