4 Replies Latest reply: Aug 9, 2012 11:21 AM by Joe Upshaw RSS

    How to Maintain Tabular Item Value Following a Validation Failure

    Joe Upshaw
      So, I have trapped the click of the Add Row button to allow me to set some items in the new row from JavaScript/jQuery. This is working great.
      addRow();
      ...
      $('td[headers="IDR_RUN_TIME"]:last').text(lastIntradayRefreshText);
      ...
      In the above example, IDR_RUN_TIME is Display Only.

      However, when the user submits the page, i.e. applies the changes, if some valdation fails, for example a particular column is NULL, the value that was set via the JavaScript above is set to NULL.

      How can I stop this from happening, i.e. maintain the value that was set when the row was added.

      -Joe