Help Center>Foundation Help

SVFormOnFormPostRender

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

Argument

Description

renderCount

The internal count of the number of times a form is rendered. The count is set to 0 after 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);