Hide Catalog Item - Now Mobile

Leonardo Chavez
Kilo Contributor

Hi SNow community,

I've a requirement which i need to hide a catalog item on the now mobile app based on the condition if a checkbox is selected, this checkbox(u_mobile) needs to be on the form of the sc_cat_item. Is there a way to accomplish this?

Thanks in forwards,
Leo

1 ACCEPTED SOLUTION

Hi,

I'm glad my reply above was Helpful to help narrow that down.

Please follow this article for assistance: https://community.servicenow.com/community?id=community_article&sys_id=68fc3336db4430d0a4c10b55ca961...

So if you wanted this automated based off that checkbox, then you can create a business rule on the appropriate table with condition to run when that checkbox is changed and then execute script that would set it's available accordingly. Else, you can forego the checkbox and not use it and instead use the "availability" field as intended.

Review this system property as well to ensure they aren't also being included in desktop view: https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/... -- glide.sc.mobile.include_desktop_only_items

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

8 REPLIES 8

Hi @Allen Andreas,

Based on either of the 2 ways it didnt hide a particular catalog item/rp, the 2nd option it'll affect all the items. 

Hi,

If you don't mind, can you give a bit more detail as to what you did, precisely?

I'm unsure if you changed the system property, as mentioned, and then adjusted the availability, etc. or what type of user/role you tested as?

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi, 

If you want to display the form only on Mobile use - Availability to Mobile like below.

find_real_file.png

This takes effect only if you have updated this property with a value false.

glide.sc.mobile.include_desktop_only_items 

find_real_file.png

 

Try this it should work for you, also remember to logout and login to make sure it takes effect on mobile.

 

Hi @Allen Andreas /Murali,

Did something wrong, but thats correct changing the properties and adding the availability field will do the work

Propertie Value
glide.sc.mobile.include_desktop_only_items false
glide.sc.mobile.unsupported_discover  no_discover

Thanks to both of you!!!