1 Reply Latest reply on Dec 22, 2010 7:34 AM by Günter Schenk

    How Pick form textfield values and calculate

    Azhar Hussain Rana

      Deal all

      Please help urgent

      How Pick form textfield values and calculate totals. i.e when clint enter amount in textfield other textfields automatically calculate and showing values. I am using ADDT.

      Thanks in advance

      My code is following

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml">

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      <title>Untitled Document</title>

      </head>

       

      <body>

      <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td width="187" align="right" valign="middle" class="KT_th"><strong>

            <label for="amount_gbp">Amount in (GBP):</label>

          </strong></td>

          <td width="14" height="30"> </td>

          <td width="199" height="30"><label>

            <input type="text" name="textfield" id="textfield" />

          </label></td>

        </tr>

        <tr>

          <td align="right" valign="middle" class="KT_th"><strong>

            <label for="admin_char_gbp">Admin Amount (GBP):</label>

          </strong></td>

          <td height="30"> </td>

          <td height="30"><label>

            <input type="text" name="textfield3" id="textfield3" />

          </label></td>

        </tr>

        <tr>

          <td align="right" valign="middle" class="KT_th"><strong>

            <label for="agent_char_gbp">Agent Charges(GBP):</label>

          </strong></td>

          <td height="30"> </td>

          <td height="30"><label>

            <input type="text" name="textfield4" id="textfield4" />

          </label></td>

        </tr>

        <tr>

          <td align="right" valign="middle" class="KT_th"><strong>

            <label for="total_amount_gbp">Total Amount (GBP):</label>

          </strong></td>

          <td height="30"> </td>

          <td height="30"><label>

            <input type="text" name="textfield6" id="textfield6" />

          </label></td>

        </tr>

        <tr>

          <td align="right" valign="middle" class="KT_th"><strong>

            <label for="total_paid_gbp">Total Paid (GBP):</label>

          </strong></td>

          <td height="30"> </td>

          <td height="30"><label>

            <input type="text" name="textfield7" id="textfield7" />

          </label></td>

        </tr>

        <tr>

          <td align="right" valign="middle" class="KT_th"><strong>

            <label for="balance_gbp">Balance (GBP):</label>

          </strong></td>

          <td height="30"> </td>

          <td height="30"><label>

            <input type="text" name="textfield8" id="textfield8" />

          </label></td>

        </tr>

      </table>

      </body>

      </html>