I'm trying to rename 'Add new item' button on a list/library control using the code from the documentation
fd.control('SPDataTable1').addNewItemText = "New text"
I have put this inside the fd.spRendered(function() { however it doesn't do anything?
Please use the following code in JavaScript Editor. Please double-check the internal name of the control. If the button text still won't change, please check if there are any errors in the console (F12) and share the screenshot of it.
If I use the fd.control('SPDataTable1').buttons[0].text = 'New Modifier'; in the console it works?? I'll try adding the script to the on ready function for the list control.