Not really SuiteScript, but hoping someone can hel...
# suitescript
p
Not really SuiteScript, but hoping someone can help me out. We embed NS forms on our wordpress website via a custom form via a post method. I want to pass custom URL parameters through to the form action URL and I'm having some issues. I found this article https://system.na3.netsuite.com/app/help/helpcenter.nl?fid=section_N979468.html where they have a section on passing paramaters from third party sites. I have the javascript correctly added before the </body> of the website, but I don't know how to add the
Copy code
onclick=”document.location.href=appendNSParams(Publishable Form URL)
to the form action of the input button. Does anyone know how I would get this to work on my form?
Copy code
<form id="ns_form" action="https://forms.na3.netsuite.com/app/site/crm/externalleadpage.nl?compid=xxxxx&formid=xxxxxx" method="post">
  <fieldset class="form-columns-1">
    <!-- various form fields go here -->
    <div class="ns_submit">
      <div class="actions">
        <input type="submit" value="SUBMIT" class="ns-button primary large">
      </div>
    </div>
  </fieldset>
</form>