Understanding How a Form Is Submitted

You can configure the Form Fill policy to submit the form in the following ways:

  • Manual Submit: When a form is configured for manual submission, all fields configured in the Form Fill policy are automatically filled by Access Gateway for the user. The user must then manually click the Submit button in the form to submit the form to the web server protected by Access Gateway.

  • Autosubmit: When Autosubmit is configured, the actual form is processed in such a way that all additional scripts not required to submit the form data to the web server are removed. A temporary form is created on runtime with necessary form data in hidden format and with an additional LAGSubmitForm() function as follows:

    function LAGSubmitForm()
    {
    executeJavaScript();
    }
    LAGSubmitForm();

    In this example, executeJavaScript() is the function that executes the JavaScript or the VBScript statements configured in the Statements to execute section. If statements to be executed are present, you can also find the function definition for executeJavaScript() as follows:

    executeJavaScript()
    {
    document.forms[0].submit();
    }

    In this example, form[0] is the single form in the HTML page and submit is the default action associated with the submit or login button of the form that automatically submits the form to the web server. This approach works for forms where the default action of the Submit button is to submit a POST request for the form data.

  • Autosubmit with Masking: When Autosubmit with masking is enabled for a form, the form data is submitted automatically to the web server, but the data sent to the web browser over the network is masked for additional security.

  • Submitting with the help of advanced options: If the form requires execution of JavaScript when the form is submitted, you cannot use the Autosubmit options. This also means that single sign-on is disabled.

    To create a policy that allows autosubmitting for this type of form, you need to create a policy as described in Creating a Form Fill Policy for Autosubmission and create two advanced options as described in Configuring the Advanced Options for Autosubmission.