This topic is locked
[SOLVED]

 Testing if "Add new" button pressed in list view

1/4/2010 5:55:45 PM
PHPRunner General questions
jpedwardspost author

Hi,
I would like to be able to test in the 'Add Page: Before Process' event
whether the phpr script mytable_add.php was brought up by the user pressing the 'Add new' Button in the List view.
Is there anything to test if the 'Add new' button has been pressed.
Regards,
JP.

J
Jane 1/7/2010

Hi,
you can check it in the Add page: Before process event or in the custom JavaScript code. Use List page: Before display event to add your JavaScript code:

xt->assign("addlink_attrs", "href='tablename_add.php' onClick=\"alert('add button was clicked'); window.location.href='tablename_add.php';\"");
jpedwardspost author 1/7/2010



Hi,
you can check it in the Add page: Before process event or in the custom Javascript code. Use List page: Before display event to add your Javascript code:

xt->assign("addlink_attrs", "href='tablename_add.php' onClick=\"alert('add button was clicked'); window.location.href='tablename_add.php';\"");



Thanks for that Jane.
Regards,
JP.