<@UKW3MKAUC> can you post a code sample that is gi...
# suitescript
m
@Chris can you post a code sample that is giving you this error?
c
Copy code
/**
 *@NApiVersion 2.x
 *@NScriptType Suitelet
 *@NModuleScope SameAccount
 */
define(['N/ui/serverWidget'], 
function(serverWidget){
  	function onRequest(context){
     var request = context.request;
     var response = context.response;

      var form = serverWidget.createForm({
        title : 'Send Invoices',
        hideNavBar : true
      });
      
      var nameFld = form.addField({
          id : 'custpage_sdr_name',
          type : serverWidget.FieldType.TEXT,
          label : 'Name'
      });
      form.addSubmitButton();
      response.writePage(form);
    }
  
  	return {
      onRequest: onRequest
    };
});
I tried to find the most basic one I was messing with and this is basically from the LCS
m
Nothing wrong with that suitelet.
message has been deleted
Make sure you are editing the right files!
c
strange. I have tried re-uploading the script and creating a new project. I'll give it another try
Thanks. Now i at least know it should be working, it was driving me crazy
sigh. I think it was all because i didn't have .js in the file name. I figured since it recognized it as a js file it was ok
Thanks!
m
No worries, glad you got it sorted