- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:23 AM
get control- on incident form change the color incident number text in blue when form load
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:28 AM
Hi @keerthana
Below is the Client script
function onLoad() {
//Get the incident number element
var incNumElement = g_form.getControl('number');
if(incNumElement) {
//Change the color to blue
incNumElement.style.color = 'blue';
}
}
Please mark it Correct and Hit Like if you find this helpful!
Regards,
Karthiga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:33 AM
Hello @keerthana
function onLoad() {
//Type appropriate comment here, and begin script below
var element = g_form.getElement('number');
if (element == True) {
element.style.color = "blue";
}
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:28 AM
Hi @keerthana
Below is the Client script
function onLoad() {
//Get the incident number element
var incNumElement = g_form.getControl('number');
if(incNumElement) {
//Change the color to blue
incNumElement.style.color = 'blue';
}
}
Please mark it Correct and Hit Like if you find this helpful!
Regards,
Karthiga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:33 AM
Hello @keerthana
function onLoad() {
//Type appropriate comment here, and begin script below
var element = g_form.getElement('number');
if (element == True) {
element.style.color = "blue";
}
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 08:15 AM
Hello @keerthana
As per new community rules, you can accept multiple solution as Accept.
Plz Mark my Solution as Accept if you got help from it.
Regards,
Samaksh