How to use javascript string functions in depends_on
like eval:doc.item_group.substr(0,1)
When I use it and try to add a new row in the document my control comes out to desktop.
Also gives an error on the console like:
Uncaught TypeError: Cannot read property ‘substr’ of undefined
I have seen that there is a length used in Sales Invoice.
Can anyone give me an idea