Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

We need to have the same field name in SOW view as per U116/Native view

sharsha
Giga Contributor

It is 'Additional comments(Customer Visible)' in UI16/Native view but it is just 'Additional comments' in SOW.

We need to have the same field name in SOW view as per U116/Native view

We're not able to find the common dictionary record which contains the same name.
also we're not able to see the dictionary field record (related to UI16 view), that have the name 'Additional comments(Customer Visible)' .

PFB attached screenshots of both view. Please advise.

sharsha_0-1787652437673.png

sharsha_1-1787652500958.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@sharsha 

another fix is create your own onload client script on INC which runs on new record and checks if it's SOW

It worked for me on new record in SOW

AnkurBawiskar_1-1787656735011.png

 

function onLoad() {
    // Check if it's a new record
    if (g_form.isNewRecord() && top.location.href.indexOf('/now/sow/record/incident/-1') > -1) {
        g_form.setLabelOf('comments', 'Additional comments (Customer visible)');
    }
}

output

AnkurBawiskar_0-1787656717333.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

8 REPLIES 8

sharsha
Giga Contributor

@Dinesh Chilaka @Suryansh Verma @Ankur Bawiskar @NehaG8791370651 @Dr Atul G- LNG @SohamTipnis , any thoughts on this? please advise, Thank you!

Dr Atul G- LNG
Tera Patron

Hi  

Try to find out, but it looks like this is a UI Builder-level change. It may be a change to the field label at the form or field level.

Could you please check whether the field has been renamed somewhere at the UI Builder, form, or field level? ServiceNow supports changing component labels in UI Builder, while form fields can also have their own label configuration. 

If the label is for a specific form action, it may also be configured through the form action layout rather than UI Builder itself.

****************************************************************************************
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
******************************************************************************************

Ankur Bawiskar
Tera Patron

@sharsha 

this is the out of the box client script on task table which is adding that extra text in Native

"Modify Comments Label"

AnkurBawiskar_2-1787656114664.png

 

In my instance at both places it's "

AnkurBawiskar_0-1787656077453.png

AnkurBawiskar_1-1787656097113.png

But for new record in SOW it's not showing that label

May be the way how forms are rendered is different and hence not working during new record in SOW, It's something to do within the UI builder component and configuration, you will have to deep dive

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron

@sharsha 

another fix is create your own onload client script on INC which runs on new record and checks if it's SOW

It worked for me on new record in SOW

AnkurBawiskar_1-1787656735011.png

 

function onLoad() {
    // Check if it's a new record
    if (g_form.isNewRecord() && top.location.href.indexOf('/now/sow/record/incident/-1') > -1) {
        g_form.setLabelOf('comments', 'Additional comments (Customer visible)');
    }
}

output

AnkurBawiskar_0-1787656717333.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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