Loading custom HTML and bootstrap within a Suitelet Form

Loading custom HTML and bootstrap within a Suitelet Form

I want to share this nice hack I created to allow to run custom HTML within a Netsuite form. I am using it to load bootstrap and sweet alert, but it can be used for a lot more! In this example I am loading a basic bootstrap template, it can be tweaked to send POST messages to the suitelet and load more jQuery plugins and scripts. The end result:   Leave a comment if you liked it or think it…

Read More Read More

Downloading Suitescript APIs To Enable Code Assist

Downloading Suitescript APIs To Enable Code Assist

Having Suitescript API javascript files available locally is useful for enabling code assist features in some IDE’s like Eclipse and Brackets. To download the files just head to Netsuite’s File Cabinet and you will find the files right above the “Delete Files” button: More info on how to integrate it with your IDE available here.

Running client script in view mode

Running client script in view mode

In order to run clientscript in view mode you need to modify the form on BeforeLoad using a UserEvent script and attach a Clientscript file to the form using clientScriptFieldId function. Here’s some examples on how to do it:   Suitescript 1.0:

Here’s what you would have in your 1.0 Clientscript customscript_yourscriptid file:

Suitescript 2.0:

Here’s what you would have in your 2.0 Clientscript file:

Suitescript 2.0 InlineHTML Hack: If you need to run your code without having to click…

Read More Read More