==============
on_before_post
==============

on_before_post(item)

**domain**: client 

**language**: javascript

**class** :doc:`Item class </refs/client/item_api>`

Description
===========

Occurs before an application posts a record to the item dataset.

The ``item`` parameter is an item that triggered the event.

Write an on_before_post event handler to take specific action immediately before 
an application posts a record in the item dataset. on_before_post is called 
by :doc:`post <m_post>` method.

See also
========

:doc:`Modifying datasets </programming/data/modifying_datasets>`
