Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to set and get cookies at Service Portal

vincentwong
Kilo Contributor

Hi everyone,

I had some issues for Service Portal.

I create a new widget for the create pop up at the index homepage.

below is the code html and java script.

But i want to create the Don't show me again cookies ><

Anyone can help ? or everyone try this before ? Can share me some hints ?

find_real_file.png

find_real_file.png

Thank You.

Regard,

Vincent.

2 REPLIES 2

vincentwong
Kilo Contributor

Hi everyone,



I have some suggestion but i need some solution.
I want the solution for server script to stop show this widget.if ( true condition ){


don't show the pop up - (widget)


}


else{


show the pop up - (widget)


}



Then i need to pass data from client script to set sys_user filed type true/false.


Anyone help?



Thank You.



Regard,vincent.