Javascript Event System - add-blog-page-before-submit

From KickApps Documentation

Jump to: navigation, search

This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.

Contents

Summary

This event is fired before submitting the form to add a new blog post.

Payload Parameters

none

Execution Interruption

If your event handler returns false, the execution will halt the form will not be submitted and the blog will not be created.

Example

function onBeforeSubmit() {

   // do something here

} var newEventId = Ka.events.listen('add-blog-page-before-submit', onBeforeSubmit);