- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I am attempting to dynamically change some colors on my form based on a condition with the following code:
data::ready:layout - (JavaScript, server)
if (xfa.resolveNode("data.#pageSet.DocumentHeader.TYPE").rawValue == "G2"){
xfa.resolveNode("data.BODY.ITEM_DETAIL.HEADER_DETAIL.Total.border.fill.color").value = "60, 60, 160";
xfa.resolveNode("data.#pageSet.DocumentHeader.DOC_TYPE").fontColor= "60,60,160"
}
However this only applies to the first occurrence of 'Document Header' and 'Body'. What is the best way to change all occurrences of 'DOC_TYPE' and 'Total'?
Many thanks in advance!
Views
Replies
0 Likes
Total Likes