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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
How to enter a rate as a percentage (e.g. discount) with SuiteScript
Hi all,
I have searched the internet and found a few suggestions for this, none of which are working for me, so maybe someone here can help.
If I try setCurrentSublistText(), it accepts '(100%)' as an entry in the field, I get "Please enter a value for amount." because the Amount field doesn't update, even with forceSyncSourcing set to true.
If I try setCurrentSublistValue(), I get "You have entered an Invalid Field Value (100%) for the following field: rate" or "You have entered an Invalid Field Value -100% for the following field: rate", depending on what I try.
There's got to be a way that both accepts the value and updates related fields, hasn't there?
Tagged:
0