The CreatorCon Call for Content is officially open! Get started here.

Change the Add Row Button title on MRVS

triciav
Kilo Sage

I was able ti inspect and find this element on a multi-row variable set

<h1 id="catalog_table_variable_dialog_title" class="modal-title h4"> Add Row <button class="btn btn-icon icon-help help"> <span class="sr-only">Help</span> </button> </h1>

 

I need to be able to change the label of my MRVS from Add Row to whatever the context of the Variable set is.

 

Example: I have a MRVS that requires users to Add RFCA Items, Add Clearance Approvers

 

How can I change the Add Row title for my mrvs to match what it is the user should be adding?

9 REPLIES 9

HI Ankur,

I have tried the same but the text of "Add" button did not change, could you please let  me know if there is any additional step required.

 

Regards,

Indraja.

Hi,

I had shared some script in this post.

Did you try that and enhance as per your requirement?

Regards
Ankur

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

HI Ankur,

Yes that worked but when I am loading the form it is changing the title few seconds I thinks that is because of the settimeout can we just ignore this timeout to avoid this issue?

And I have the following questions on multirow variable set

1. I want to limit the rows getting added in multirow variable set with "max_rows = 10" in variable set attributes field but this isn't working could you please let me know what is the issue.

2. I want to change hovering description of "you can only add 1,000 rows" when we hover over add button to "you can only add 10 rows"

 

Hi,

yes because of setTimeout. nothing can be done for that.

for max_rows it should work

Not sure on the hover message

Regards
Ankur

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