Is it possible to add a message in the body of g_modal.showFields?

DarshanaS
ServiceNow Employee
ServiceNow Employee

I want to change the name of the ok and cancel buttons of g_modal.confirm(), but I don't see an option for it. However, the g_modal.showFields seems to support this using the properties 'confirmTitle' and 'cancelTitle'. So I was trying to use this instead of g_modal.confirm. But I can't find a way to add a message or subheading in the modal body without providing an input field in the UI using the 'fields' property. There is only the 'title' property which is the heading of the modal. Is there any property that allows us to add some text to the body as a subheading for g_modal.showFields? 

Or if it is possible to change the names of ok and cancel buttons in g_modal.confirm that would also be helpful!

 

Reference I've looked into - 

https://www.servicenow.com/community/next-experience-articles/how-to-use-ui-actions-in-workspaces/ta...

 

1 ACCEPTED SOLUTION

Abbas_5
Tera Sage
Tera Sage

Hello @DarshanaS,

Please refer to the link below:
https://www.servicenow.com/community/now-platform-forum/g-modal-is-there-any-documentation-what-can-...


If it is helpful, please mark it as helpful and accept the correct solution. In future, it might be helpful for someone to refer to this solution.

Thanks & Regards,

Abbas Shaik

View solution in original post

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @DarshanaS,

Please refer to the link below:
https://www.servicenow.com/community/now-platform-forum/g-modal-is-there-any-documentation-what-can-...


If it is helpful, please mark it as helpful and accept the correct solution. In future, it might be helpful for someone to refer to this solution.

Thanks & Regards,

Abbas Shaik