- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 10-22-2019 11:15 AM
Hi All,
i was just try to change the font on the incident form,some how i was able to achieve this .
Please follow the below steps:
1.As this is going to be DOM operation we need to disable below system property
glide.script.block.client.globals
refer SS :
2.Now add Isolate Script check box on the Client Script:
refer SS:
3. Now on OnLoad client script add below line:
document.getElementById("element.incident.caller_id").style.fontFamily ="Impact,Charcoal,sans-serif";
Note: elemet.incident.caller_id is an element id for Caller field.
This will be the result for the above configuration:
please mark my comments helpful if this will help you in any way .
Regards,
Ajay Chavan
- 1,707 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Great work Ajay, thank you for sharing! Keep up the good work!! I just want to put out the risk too as DOM manipulation is not takecared by ServiceNow during upgrading the instance since it is customization! Let me know your thoughts, Ajay?
Regards,
Mokemal!!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Helpful post Aj.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
What we need to add if it for Variable
I added elemet.variable_name but its not workign