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.
Custom form - code to save price levels
Hi,
I have a custom form deployed (Suitelet) which enables a user to add inventory items.
There is a code which add the price level field basically, the Base Price.
The code is:
form.addField('_base_price', 'currency', 'Base Price').setMandatory(true);
And the price entered is saved by this:
record.setLineItemValue('price', 'price_1_', 1, request.getParameter('_base_price'));
I would also like to add the other price level that was setup and that is the Retail Price. I can add the field on the custom form, but not sure how will I code the saving part.
The price levels are listed as:
0