Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Trigger the 'clear all lines' button on purchase request programatically
Hi all,
I'm trying to trigger the clear all lines button on a purchase request via a client side script. Is there a way to tap into this element via jQuery and trigger the onclick event? I tried:
jQuery('#clearsplitsitem').click()
But it doesn't work.
Has anybody else managed to trigger a button click before in NS script or accessed the internal NS method behind a button?
Thanks.
0