Native XFA layout conditions

Version 2.1189.0 evaluates extended FormCalc scripts on conditional breakBefore and breakAfter through the native runtime when JavaScript is disabled, including loops, functions and the default FormCalc script language

The condition uses its actual layout owner and data context, including a nonwidget owner with no data record, and converts the script result to the Boolean break decision

Layout state and restart

xfa.layout.ready and $layout.ready are read-only numeric state: zero while a layout condition is evaluating and one after completed layout, including ordinary events and layout-ready handlers

A retained layout facade reads the current state each time rather than caching the state from its creation

Changes to Form values or existing simple attributes such as width restart layout, so the resulting page count and widget geometry reflect the change

Explicit xfa.form.remerge() is available through the existing native event path; a once-only guard must survive remerge, for example in a bound dataset value, because an unbound Form value can be recreated from its declaration

Existing attribute references

Native FormCalc member access and resolveNode/resolveNodes can retain existing simple attributes on actual Form, property and Template owners; an actual child node of the same name takes precedence

Each returned attribute reference belongs to its actual owner, so repeated owners do not collapse into the first owner and a side-effecting parent predicate is evaluated once per owner

Removal or remerge retires the old owner and its attribute references; missing attributes and namespace-qualified names are not created by this fallback, and Data child lookup retains its existing rules

Ordinary upward name lookup and descendant queries retain the existing SOM traversal, including continuation after a first matching descendant has no matching suffix

Limits and transaction behavior

Conditions, mutations and nested remerge share the existing operation pool and deadline; a nested layout cycle does not obtain a fresh budget

A failed condition reached from a public event restores the event transaction, including preceding value and attribute changes, and the next valid event can proceed

No JavaScript provider is enabled internally for this native profile; JavaScript conditions still require explicit JavaScript enablement

Version 2.1190.0 separately adds native page, span, fragment geometry and page-content queries; neither finite profile establishes universal XFA compatibility

See XFA form scripting, input event listeners and native instance managers