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 make an info message fit to the screen.

Community Alums
Not applicable

Please refer to the below image as it does  not show full info message so i want it to be shown in full screen. is there any solution for it?

 

PRITHVIRAMESH_0-1691673716164.png

Below the last line there are still few lines which is to be visible but i am unable to see the message.

3 REPLIES 3

Community Alums
Not applicable

Hello Prithvi,

You can use the properties `window.innerWidth` and `window.innerHeight`. These properties provide the dimensions of the screen, allowing you to adjust the size of your information message accordingly. Determine the appropriate margins from the top, bottom, left, and right based on these width and height values.

Should you require any assistance during the implementation, please feel free to reach out.

Thank you.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Community Alums 

 

I am not sure but give a try to these 2 properties - window.innerWidth` and `window.innerHeight which help you to adjust the message.

 

Please mark this response as correct or helpful or the solution accepted if it assisted you with your question.

Regards
Atul G.
Learn N Grow With Atul G

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sohail Khilji
Kilo Patron

Hi @Community Alums,

 

Remember if you modify the system properties then it would be global change on all the tables.

If you require this only for specific tables then you will have to go with the HTML option within the addInfoMessage.

[OR]

 

To fit the box you can use HTML varaible which has all these text and reduce the size of text down to few pixels,  this will fix your issue.

 

I hope this helps.... Be aware when changing and sys_properties it can have global impact.

 

 

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect