cancel
Showing results for 
Search instead for 
Did you mean: 

How to change mesage display on top when Quote change its status from "Open" to "Quote Accepted"

krishsoni
Explorer
0 Kudos
320

Hello Expert,

I want to know how to change the message text which displays on top when the Quote status change due to some action.

My Quote has an open status and then I perform the action "Quote Accepted" by clicking on three dots from the right side top menu. After clicking on the "Quote Accepted" action my quote status changed from "Open" to "Quote Accepted by Customer" and along with it, there is a message "Your sales representative will call you soon. Thanks for accepting our proposal. " on the top header above the "Quote Info" heading in the "Quotation" tab.

I want to create a new message to display but could not find anything under "Workflow/Approval" or "Quotes" where I can create new or edit existing messages which display on the quote top section when we change the Quote status.

I really appreciate your help and guidance.

Thanks and Regards,

Krish

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

krishsoni

you can do it through Scripts or write a script , call the script name in your CTX tag and add it in Workflow action.

krishsoni
Explorer
0 Kudos

Hello Yogananda,

Thanks for your prompt reply.

I need some more details and guidance.

As per my understanding message is a standard message and it should be defined somewhere in SAP CPQ. Am I right?

The code that prints this message is under page "Cart" and inside the template "Sections/Notifications" as per the image below.

The above code has used Knockout JS and I do not know much about Knockout JS but from the code, I can say that

line#12 -- data-bind="style : { display: messageTitle() ? 'block' : 'none' }" is responsible to make <div> visible or hide.

line#13 actually prints the message

line#14 display <ul><li></li></ul> if it has any content.

I could not able to find the knockout js code for line #12,13,14 and 15 --- "display: messageTitle()" , "html: messageTitle" , "foreach: messageItems" and "text: title" & "text: description"

The above functions or variables must be defined somewhere in some other file because I can't find it inside the template "Sections/Notifications"

Do I have to find where this standard message is coming from SAP CPQ setup and change the standard message text or I have to delete lines #12 to #17 and insert new knockout-js code by changing the default template "Sections/Notifications" from

"Setup-->UI Design-->Responsive Template"

if you can provide some code examples in case it requires changing knockout-js code, I really appreciate your help.

Thanks for your time and guidance.

Regards,

Krish