Forum Post: [article] How To Configure Object Record Form Submit Handlers ?

  • Thread starter Thread starter Mohammed Siraj
  • Start date Start date
Status
Not open for further replies.
M

Mohammed Siraj

Guest
In Rollbase, for Record New/Edit/Status-Change/QuickCreate pages, user can configure 'onsbumit' event handler in Object Definition -> Pages -> Edit Page -> Properties -> HTML Event Handlers section. Additionally, with New UI (4.0.4) release, we have added client-side API options to acheive the same. Users can now also configure a script component on the page & leverage this API to attach form submit handlers. Given below is a code snippet that demonstrates the same: Attaching form submit handlers in New/Edit/Status-Change/Quick-Create pages: Note: Directly attaching form submit handlers on elements or 'click' event handlers on Submit button in page is discouraged. This may interfere with Rollbase platform behavior & also have compatibility issues across releases. Additionally, handlers configured in this manner may also be incorrectly notified on form cancel.

Continue reading...
 
Status
Not open for further replies.
Back
Top