Mobile - How to hide an input form section if all inputs are hidden? - HideIfDescriptiveOnly

Ramon Cordova
Tera Contributor

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:

RamonCordova_0-1765142244244.png

I have an input form screen with a section set up with a descriptive element, it's very basic:

RamonCordova_1-1765142388100.png

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.

RamonCordova_2-1765142502363.png

I have a UI Rule, that hides the checkbox in the screen, but the section still displaying even when the input is hidden:

RamonCordova_3-1765142614502.png
So that attribute doesn't seem to be working or maybe I'm missing something.

 

References:

RamonCordova_4-1765142694899.png

Mobile Platform release notes

Configure input form sections

 

4 REPLIES 4

RaghavSh
Mega Patron

@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.


Raghav
MVP 2023
LinkedIn

It doesn't work in that way either.
I tried inactivating the input, then deleting it, and the section keeps displaying.

RamonCordova_1-1765216355228.pngRamonCordova_2-1765216376045.png

RamonCordova_4-1765216776943.png

 

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:

RamonCordova_5-1765217022156.png

 

 

Which version of ServiceNow are you on currently?


Raghav
MVP 2023
LinkedIn

Zurich