Contents - Index


RequestFormSubmitById

 

Type: Method

Parameters: String Id

Returns: nothing

 

 

Submit the form identified by id

 

When the submit completes, the OnRequestFormSubmitById event is triggered.

 

Example:

 

Suppose we have the following html:

    <form id="login" class="login" action="thankYou.html">

        <div class="loginName">

            <label for="username">UserName</label>

            <input type="text" name="username" placeholder="User Name" required />

        </div>

 

        <div class="loginPassword">

            <label for="password">Password</label>

            <input type="password" name="password" placeholder="Password" required />

        </div>

 

        <div class="loginBtn">

            <button id="submit" type="submit" name="submit">Login</button>

        </div>

    </form>

 

Code in DataFlex:

 

   Object oSubmitButton is a Button

     Set Location to 199 144

     Set Label to "Submit"

     Set peAnchors to anBottomLeft

 

     Procedure OnClick

       Send ConnectBrowser to oDocument

       Send ComRequestFormSubmitById to oDocument "login"  

     End_Procedure

   

   End_Object