Change the Add Row Button title on MRVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2021 11:53 AM
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?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2021 06:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2022 08:52 PM
Hi,
I had shared some script in this post.
Did you try that and enhance as per your requirement?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 02:21 AM
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 02:58 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 09:01 AM
Hi,
The hovering message issue is solved in below post: