title: It is possible to show the edit page of the record by clicking the custom button in netsuite?
body: <p>I want to show the edit page of the record by clicking the custom button instead of the "standard edit button"</p>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>Script Version: Suite Script 2.0
  User Event Script:
      function beforeLoad(context) {
  
          log.debug('Test', 'Before Load Event Initiated');
          var frm = context.form;
          frm.clientScriptFileId = 2250;
  
          //Values from System/ScriptContext
          var record = context.newRecord;
          if (context.type == context.UserEventType.VIEW) {
              frm.addButton({
                  id: 'custpage_cust_edit_btn',
                  label: 'Deactivate Record',
                  functionName: 'customRecordEditMode(' + record.id + ')'
              });
          }
  
      }
  
  Client Script:
  
      function customRecordEditMode(recordID) {
          debugger;
          try {
              window.location.href = "https://system.sandbox.netsuite.com/app/common/custom/custrecordentry.nl?rectype=194&amp;id=" + recordID + "&amp;e=T";
          } catch (exception) {
              alert("Error:", exception.message);
          }
      }
  </code></pre>
  
  <p><strong>ERROR Message:</strong></p>
  
  <p>I'm Getting the Following Error Message:</p>
  
  <p><a href="https://i.stack.imgur.com/S8Gp3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S8Gp3.jpg" alt="enter image description here"></a></p>
  
  <p><strong>but the url of the record is same as in when we click the standard "Edit" Button.  (i,e) rectype=194&amp;id=237&amp;e=T</strong></p>
  
  <p>thanks in advance</p>