I have an application in Vignette Portal Builder that has amain page, and a button at the bottom that will navigate to secondary pages,based on a field value in the main page.
I have a requirement to hide some of the form groups whenthe pages are opened, then optionally reveal them based on a field value.
I can initialize the group on the main form page to be hiddenwith a function that runs when the first page loads:
function initializealtrebate (xeform){
document.getElementById("ID-EvaporateCoolingRebateEntry-AlternateRebateRecipient-group").style.display="none";
}
window.onload =initializealtrebate
However, I can’t get a similar function to run on thesecond page.
Is there a way to run a function when the second pageloads? Or, alternatively, is there another way to initialize a group as hidden(e.g. using an attribute)?
MarkSiple
Xcel Energy | Mercury ITG Development and Support
P: 303.571.7460 C: 720.810.1027
E: mark.c.siple@xcelenergy.com