I am using below code (from assure dynamics) to highlight field. This code highlights only one page of the form. I am trying to apply this code for my entire form that has 5 pages. One way may be to place this code in every page. I am trying to avoid it but can't getting there.
// turn highlight on/off depending on what the user clicks
if (this.rawValue == 1)
// turn on the highlight colour
// avoids save dialog on closing form, would not normally use