How to restrict or disable the add button in Multi Row Variable Set after the 5th Row?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 10:43 PM
I have to restrict the number of rows to 5 but i am not be able to restrict or disable the add button. Could you please share some thoughts or suggestions ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2018 10:10 PM
Hi Experts,
We have a requirement to hide the add button in multi row variable set in catalog tasks.
Please suggest a way of achieving it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 01:22 AM
Hello,
We have a requirement to remove the RemoveAll Button, I was able to do it using DOM Manipulation, but would like to hear if there are any other ways in achieving it,
To Remove Add Button:
var x = document.querySelectorAll('[id*="add"]');
var i;
for (i = 0; i < x.length; i++) {
x[i].style.visibility ="hidden";
}
Thanks,
Shanmukha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019 11:15 PM
Hi,
Could you please let me know where did you add this DOM manipulation in catalog client script? Could you provide step by step process it will be of great help.
Regards,
Swathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2019 12:48 AM
Hi,
I just added it in a On Load Client Script so that when the form loads the "Add" Button on the Multi-Row Variable Set will be hidden automatically.
But, if your Multi-Row Variable Set is not visible on load of the form, then based on the visibility condition of the of the Multi-Row Variable Set field you could add the above script.
Thanks,
Shanmukha