This topic is locked

Adding A New Button To Add/edit Pages

7/11/2013 11:43:32 AM
ASPRunnerPro Tips and tricks
admin

Lets say we need to add a new button that will save the record and redirect user back to the List page.

  1. Add a new button to the Add or Edit page via 'Insert button' function in Visual Editor
  2. ClientBefore event:

pageObj.on('beforeSave', function(formObj, fieldControlsArr, pageObj){

formObj.baseParams['golist'] = "1";

});
$("#saveButton1").click();
return false;


3. AfterAdd or AfterEdit event:

if REQUEST("golist")<>"" then

Response.Redirect "..._list.asp"

Response.End

end if