Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to change Background Color of a Form

ChezAndrewI0898
Tera Contributor

Use Case:

Need to change background color of a Form in Client Script.

How to do this?

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron

Hi @ChezAndrewI0898 

 

Check my  video , you will get option

 

https://youtu.be/veZAGjcp92A

 

https://www.servicenow.com/community/now-platform-forum/is-there-a-way-to-change-the-color-of-the-ba...

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @ChezAndrewI0898 

 

Check my  video , you will get option

 

https://youtu.be/veZAGjcp92A

 

https://www.servicenow.com/community/now-platform-forum/is-there-a-way-to-change-the-color-of-the-ba...

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

Use Case:

When state changes to something, change the background color of the Form.

How to do this? or How to manipulate DOM in client script?

Thanks

Hi @ChezAndrewI0898 

 

DOM manipulation in not recommend. instead of this you can change colour of state field when state get change instead of changing form colour.

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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