How to make text of Label type in Bold

taqdeer
Tera Contributor

Hi All,

I want to make Header in Bold. I have created it as of Label Type and I am not able to make it bold and big. Could any one please help me in making this text bold. Below is the screenshot for the reference.

customization is header here. I want to make it bold in black color.

find_real_file.png

26 REPLIES 26

@taqdeer 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@taqdeer 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@taqdeer 

I believe I have answered your question with the approach.

Would you mind marking my answer as correct and helpful, to close this thread?

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@taqdeer 

I believe I have answered your question with the approach.

Would you mind marking my answer as correct and helpful, to close this thread?

Regards
Ankur

 

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi ankur,

This code is working me exactly what i need. But i set that code for changing color it is working but i need it should be bold and increase text size also. Is there any possible to set that in that code only.

Here is code:

setTimeout(function() {
if (window != null) {
// native
g_form.getControl('you_have_already_raised_a_ticket').setAttribute('style', 'font-weight: bold;color:red');
} else {
// portal
var aTags = this.document.getElementsByClassName("ng-binding");
var searchText = "You have already raised a ticket";
var found;

for (var i = 0; i < aTags.length; i++) {
while (aTags[i].textContent.toString() == searchText) {
aTags[i].style.color = 'red';

break;
}
}
}

}, 5);

Thanks