Contents - Index



Type: Method

Parameters: String Name

Returns: nothing



Request the value of the element identified by Name.


As the request is run asynchronously, the requested value is returned in the OnRequestElementValueByName event.




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 class="loginPassword">

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

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



        <div class="loginBtn">

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





Then in DataFlex run:


   Object oReadFormButton is a Button

     Set Location to 199 92

     Set Label to "Read Form"

     Set peAnchors to anBottomLeft


     Procedure OnClick

       Send ConnectBrowser to oDocument

       Send ComRequestElementValueByName of oDocument "username"

       Send ComRequestElementValueByName of oDocument "password"