To include a JavaScript submission button:

  1. Export the Form as HTML.

  2. Open the Form in an HTML editor.

  3. Add HTML code to create a button for users to click in order to run the JavaScript submission mechanism. For example:

    <INPUT TYPE= "BUTTON" VALUE="Submit" ONCLICK= "SubmitNow();">

  4. Type your script similar to the following:

    function SubmitNow()
    {var llfv = document.myForm.LL_FUNC_VALUES.value;
    if ( llfv.substring( 0, 14 ) != "A<1,?,'func'='" )
    {alert( "llfuncvalues is not an assoc???" );}
    else{if ( llfv.substring( 14, 27 ) != "Form.SaveForm" )
    {alert( "llfuncvalues is not saving???" );}
    else{var old = llfv;
    // change the function from Form.SaveForm to Form.SubmitForm
    llfv = "A<1,?,'func'='Form.SubmitForm'" + old.substring( 28, old.length );
    // save this back to llfuncvalues
    document.myForm.LL_FUNC_VALUES.value = llfv;//alert(llfv);}}
    // submit the form
    document.myForm.submit( "contentserver.exe#FDF", false, true );}

  5. Save the Form.

For information related to this procedure, see Adding an HTML File as a View.