Question

Visibility condition expression examples for Mobile Mode

Hi Community,

We have a requirement for a property to only show in mobile mode, does anyone know how to add in a visibility condition for when the UI is in smartphone mode?

I was not able to find any expression samples or examples online in regards to this so any feedback would be appreciated.

Thanks,
Masato

***Edited by Moderator Marissa to update platform capability tags****

Correct Answer
February 27, 2019 - 9:11am

Thank you community, I was able to put in the conditions by using the devicetype property equal to phone. 

Masato

Comments

Keep up to date on this post and subscribe to comments

Pega
February 26, 2019 - 2:48pm

Try pyIsMobile for mobile check in general, and pyIsMobilePhone for mobile phone check.

Thanks

February 26, 2019 - 9:46pm

Alternatively you could also use css media queries to hide the property on the client.

February 27, 2019 - 9:11am

Thank you community, I was able to put in the conditions by using the devicetype property equal to phone. 

Masato