Mobile - How to hide an input form section if all inputs are hidden? - HideIfDescriptiveOnly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi!
I'm catching up with some new features in Mobile development.
I saw this in the release notes and wanted to try it out:
I have an input form screen with a section set up with a descriptive element, it's very basic:
The docs says that if I add HideIfDescriptiveOnly attribute to the input form section and set it to true, the section should be hidden if the inputs in it are hidden as well, but I can't get that to work.
I have a UI Rule, that hides the checkbox in the screen, but the section still displaying even when the input is hidden:
So that attribute doesn't seem to be working or maybe I'm missing something.
References:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Ramon Cordova I believe it is behaving as expected.
There is a checkbox associated to section though hidden with mobile UI rule. I believe it will hide the entire section if the checkbox is deleted and section has the attribute HideIfDescriptiveOnly set to true.
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
It doesn't work in that way either.
I tried inactivating the input, then deleting it, and the section keeps displaying.
I also tried inactivating all the inputs in the input form screen itself (the ones that displays in the previous page) but then the input from screen is skipped (won't open) and the action item is executed directly. This happens regardless of the HideIfDescriptiveOnly value.
I figured it should work if the inputs get hidden by UI Rules (not necessarily deleting or inactivating all the inputs in the screen), because the Mobile App Builder says the section will be hidden if the inputs are "conditionally" hidden too:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Which version of ServiceNow are you on currently?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Zurich