How to display Footer Function for no record Screen (Mobile Apps)

MohdAr
Tera Contributor

I have created new list screen with 2 footer function button. I noticed the buttons only appear if have record on it. How to make the buttons appear even though no record is available on the list screen?

 

MohdAr_1-1728279571507.png

 

 

1 REPLY 1

Fernando K
Kilo Sage

Hi MohdAr, 

Late response but we recently ran into the same behavior. By default the list footer (including footer function buttons) is hidden when there are no records.

While there are list attributes related to the footer we found they don’t override this behavior in empty lists. What actually displays in an empty list instead is the empty state, which is driven by the Empty State record that uses a mobile card builder card.

The way I saw ServiceNow handles this is by placing the action directly on the empty-state card itself in this scenario.
-> https://www.servicenow.com/docs/r/yokohama/mobile/empty-state-handling.html

So the solution is to; 

- Keep your function configured as a footer button for when records exist

- Also add the same mobile function to the empty-state card for that list


This way, the same functionality is available whether the list has records or not.

Hope this helps other people running into this.