Home > WebEOC > Admin Guide > Board Building Tips > Carry Out an Action Upon Saving a Board

Carry Out an Action Upon Saving a Board

Table of contents
No headers

The proceeding is an example of a script to carry out an action when a board record is saved in WebEOC.

<script type="text/javascript">
function runWhenSubmitted()  <--Give this a meaningful name
{
     [Do whatever processing you want here]
     return;
} 
function SetSubmitHandler()
{
     document.forms[0].onsubmit = runWhenSubmitted;
}
window.onload = SetSubmitHandler;
</script>
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.