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
Need help with curley brace in inlineHTML field
I have an inline HTML field that I'm including some javascript in. I'm doing this because I need the JS to execute for edit and view modes. The last problem that I'm having is that NetSuite is interpreting the '{' as the start of a formula field tag.
Here is a code snippet and the associated error:
html.push('function showDoc(){');
Error: missing { before function body
Source Code: function showDoc(){
I'm able to get it to work by using double braces, but this is also rendered in the response which in a more complex example would create scoping issues in some cases.
Steve Klett | Senior Developer
NetValue Technology
0