We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

I have to close image once the user click on the close button on NOW MOBILE APP

SK5555
Tera Contributor

I have to close image once the user click on the close button on NOW MOBILE APP

14 REPLIES 14

My last thought:

  • Show the card by default when the user logs in

  • Hide it only when the user clicks the close button

  • Reset automatically on next login

How to do it:

  1. Create a client state (for example: showWelcomeCard) with default value true.

  2. Bind the visibility of the card/container to this client state.

  3. On the Close (X) button, add a click action to set the client state to false.

Result:

  • User logs in → card is visible

  • User clicks Close → card disappears

  • User logs out and logs back in → card appears again

This gives you dynamic behavior exactly as described, without storing anything permanently.

@SK5555 - Please mark Accepted Solution and Thumbs Up if you found Helpful 

MJG

Hi @Matthew_13,

 

could you possibly explain what exactly is "client state" and how can a state have any value? Isn't state already a value?

_____
100 % GlideFather experience and 0 % generative AI

Thanks .I may be wrong, please see my attachment there is no client state on my instance.

Hi @SK5555,

the question about client state was for @Matthew_13, it seems that it was unvalidated reply that makes no sense and only brings chaos... 

 

For you question @SK5555 
"I have to close image once the user click on the close button on NOW MOBILE APP"

And what happens if you click on it? could you possibly add some context/details? 

_____
100 % GlideFather experience and 0 % generative AI

No,I am unable to add the button there is no option but i did one thing , I have used function and action. through action i can only do to update the record. So i did inactivate the static record but it will impact global level. so no user can access it.