You are here: Reference Guides > Javascript Support > SVFormOnFormPostRender

SVFormOnFormPostRender

The SVFormOnFormPostRender function is a function that gets called after the form is rendered within the browser.

Download example (.wssln file)

SVFormOnFormPostRender arguments

Argument

Description

renderCount

The internal count of the number of times a form is rendered. The count is set to 0 after the getting the form markup from the server. Every other time the form is rendered, the renderCount variable is incremented.

SVFormOnFormPostRender code sample

The following Code Snippet populates a field within a form with the amount of times the form is rendered:

//SVFormOnFormPostRender Example

//Create function with the renderCount argument

function SVFormOnFormPostRender(renderCount) {

//Display the amount of times the form has been rendered in an alert message.

alert("Form Render Count: " + renderCount);

}