Showing posts with label row checked. Show all posts
Showing posts with label row checked. Show all posts

Tuesday, February 4, 2014

Apex 4.0 Tabular Form - make Default add row checked (selected)

Apex 4.0 Tabular Form - make Default add row checked (selected)

How to make the row added using Add Row button default selected?

Steps:

  • Go to the page
  • Click on the Add Row Button
  • One can see that the Add Row button calls a java script addrow()
  • Add the following
$('input[name="f01"]:last').prop("checked", true);

Thus the URL target for  Add Row will be

javascript:addRow();
$('input[name="f01"]:last').prop("checked", true);