Is there a way to display a message to users when using a native in-app filter and the user’s filter choices/configuration doesn’t produce a result?
I don’t see any way to do this — there’s nothing to ITE or query or similar. Am I missing something simple? Thx
I think for now you can only use CSS.
I appreciate the feedback. I’m curious how I would solve this using css since there isn’t anything to target with a new style is there?
What components do you use?
It’s a collection component styled as a list.
I’m not sure if that’s even possible because you don’t have access to the in-app filter values as a developer, so maybe there’s not a way to get access to the number of filtered records on the screen. As I understand, you have to get that to be able to show something when the user gets to that state, but I might be wrong.
@gannonatwork, next to the collection component (class name: collectionName), you need to add a text/rich text component and name its class emptyMsg.
#page-root:has(.collectionName > div > .component-root > div > div > div:nth-child(2)) [data-testid="wire-container-emptyMsg"]{
display:none;
}
/*This second code can be removed because the component is essentially visible.*/
#page-root:not(:has(.collectionName > div > .component-root > div > div > div:nth-child(2))) [data-testid="wire-container-emptyMsg"]{
display:block;
}
@Himaladin, this is awesome! Thank you for taking the time to come up with this css, it is much appreciated. Until Glide provides a native solution, this is a sweet workaround. Thx again. 