Hello,
How do I test, using JavaScript, whether a specific field exists on a form or not? I tried the following, but not quite working:
if (xfa.layout.absPage(pg1.sfCap.sfCapLeft.Table2.Row2) == -1 )
{
}
Note: For the form where I tried this, the Row2 does not exist at all
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
The resolveNode function (see http://help.adobe.com/en_US/livecycle/9.0/designerHelp/001395.html) can be used to retrieve the value of a specific node within a table row. You will still need to determine the row count and iterate over the table row instances in conjunction with resolveNode().
Steve
Views
Replies
Total Likes
You could test if the row count of a table. For example, form1.page1.subform1.table._row.count could be compared to form1.page1.subform1.table._row.occur.min to test if a new row had been dynamically added to the form.
Steve
Views
Replies
Total Likes
So there's no exists() function that can return whether an item is found on a form or not? I'm trying to create a fragment that will work for multiple forms, but part of the solution is that it must be able to determine if a certain item exists on a form AND that the code does not fail just because the item isn't found at all. Thanks.
Views
Replies
Total Likes
The resolveNode function (see http://help.adobe.com/en_US/livecycle/9.0/designerHelp/001395.html) can be used to retrieve the value of a specific node within a table row. You will still need to determine the row count and iterate over the table row instances in conjunction with resolveNode().
Steve
Views
Replies
Total Likes
Thanks; I'll give that a try.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies