Monday, November 19, 2012

Hide the Fields in the Adobe form

Source filed, based on this we need to hide or display fields
















//Select value from list
var raw = data.resolveNode("data.#subform[0].ISR_DDL_NoSelected").rawValue;
if(raw == 11)
{
data.resolveNode("data.#subform[0].#subform[3].#field[16]").presence = "visible";
data.resolveNode("data.#subform[0].#subform[3].#field[17]").presence = "visible";
}
else
{
data.resolveNode("data.#subform[0].#subform[3].#field[16]").presence = "hidden";
data.resolveNode("data.#subform[0].#subform[3].#field[17]").presence = "hidden";
}

add code there.(in events with scripts)


Target fields


Add also add the same code in FORMREADY of source field



Useful code in Adobe forms:
read values

var value = data.resolveNode("data.#subform[0].I0962_RSREA").rawValue;
check with message box.. for the values exists or not
xfa.host.messageBox(value);


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.