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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
How to turn off formatting for dynamic integer form field?
Hey All,
I have a dynamically added integer field on a form I'm working on. I would like to disable formatting on this field, much like you can do with standard integer fields, so that, for example, entering 1234 into this field, displays as 1234, and not 1,234.
Here's my code for adding the field to the form. I looked in the ss dev/ref guide, but I'm not seeing any API for disabling this formatting.
var field1 = form.addField('custpage_field1', 'integer', 'Search By Integer Number', null, 'main');
form.insertField(field1, 'custevent_search_by_integer');
How can I disable the standard formatting applied to integer fields for this dynamically created integer field.
0