Forums: Adding A New Button To Add/edit Pages - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Adding A New Button To Add/edit Pages

#1 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16044
  • Joined: 03-February 03

Posted 11 July 2013 - 03:43 PM

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

Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic