HDInterviewOptionsOnInit Method
This method, if present on the HDInterviewOptions object, will be called before HotDocs builds the interview. You can use this method to perform any necessary interview pre-processing or customization, such as adding custom buttons to the interview toolbar or registering interview event handlers.

JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
Syntax

JavaScript
function OnInit();
Examples

JavaScript
var HDInterviewOptions =
{
    Locale: "en-GB",
    FinishWarning: true,
    OnInit: function()
    {
        HDAPI.SetButtonVisibility("HDNextUnans", false);
        HDAPI.SetButtonVisibility("HDPrevUnans", false);
        HDAPI.AddCustomToolbarButton(HelloWorld, "http://servername/images/btn.png");
    }
}

function HelloWorld()
{
    // do something useful here
}
See Also

Reference