XFA Presentation Event Sources

Version 2.1169.2 preserves an admitted generated presentation source whilst its event propagates through the corresponding accepted ancestor context, including once that source becomes hidden

Version 2.1169.3 also resumes that source through form remerge and qualified streaming record-window barriers when the original accepted placement and data context remain uniquely provable

Version 2.1169.4 also admits proved ancestor contexts for raw Template sources whose outer layout record precedes the generated presentation boundary

Version 2.1169.5 also proves the enclosing parent segment and the distinct clicked copy where two owners on one page reference the same leader or bookend target

Source and listener identity

The runtime records placement steps by identity and context rather than holding raw model-node pointers across publication

Recovery checks the source, accepted data, placement path, page and copy type before carrying on

An ancestor listener uses the corresponding prefix of that presentation path; this remains the listener owner and xfa.event.target remains the original source object

A hidden source has no interactive widget index, so its actions cannot quietly select a different visible copy

Hiding an admitted source

A click handler on an already accepted generated input may hide that input whilst the admitted ancestor listener still receives its original source

this.presence = "hidden";
this.parent.log.rawValue += xfa.event.target.name;

The pending event keeps the source's script identity and accepted data relationship across ordinary handler publication

Ordinary fields and existing physical page copies keep their previous behaviour

Remerge and record-window barriers

A generated input may become hidden and call xfa.form.remerge(), then carry on through the refreshed xfa.event.target and its admitted ancestor listeners

Consecutive remerges refresh the source proof after each successful barrier

Remerge still retires old Form script objects; a saved this object is not quietly replaced by the rebuilt node

Streaming navigation can continue a hidden source when an ancestor calls xfa.dataWindow.gotoRecord(5) and the accepted Form source and its retained data relationship survive

Advancing the stream cursor does not of itself rebind that existing Form source to the destination record

Raw Template ancestors

A legal positioned prototype can generate an interactive source whilst its named outer subform has no datasets and no materialised Form model

The outer ancestor's accepted layout record may have a shorter presentation path than the generated source

That path must match the complete corresponding prefix, physical page and actual placement owner, and the owner's accepted fragment ancestry must prove the ancestor's exact data identity

The runtime uses those accepted records instead of inferring data from the ancestor's name or repeating caller scope resolution

An explicitly accepted nil context stays nil; missing or conflicting evidence still rejects the event and preserves the transaction

Same-page multiple generated copies

Two owners on one page may reference the same positioned leader or bookend target through either bookend or breakBefore, so that target generates one copy per owner alongside its ordinary copy

Adjacent flow segments can share a region boundary event, so a candidate parent is accepted only when the child's complete event interval fits inside the candidate interval

Source family, source scope, physical page and content area still qualify each candidate, and two candidates that both contain the complete interval still raise a multiple-accepted-segment rejection rather than selecting one

Each generated copy keeps its own widget identifier, and an ancestor listener sees precisely the copy that was clicked together with that copy's owner

The ordinary copy of a shared target stays distinct from generated presentation copies during input source recovery and event target binding, so it cannot resolve to a generated copy

Recovery and editing

Removing the source, presentation target or placement owner invalidates continuation rather than choosing another occurrence

An exception or an exhausted shared operation allowance restores the surrounding XML and host transaction

Hidden typed input remains noninteractive; this event-source profile does not relax the visible-source requirement of typed edit continuation

Qualification boundary

The qualified generated-source path covers ordinary publication, visible and hidden remerge, consecutive remerges, hidden-source ancestor barriers and same-page multi-owner leader and bookend placements

The streaming controls explicitly retain source, owner and data handles; unrelated owner/source record combinations without retained target handles are not qualified under this profile

Arbitrary repeated raw data contexts, nested generated paths, raw streaming combinations and placements whose parent candidates remain genuinely ambiguous are not established by this profile

This adds neither arbitrary event references nor general cross-container routing

See XFA Input Event Listeners and Interactive Dynamic XFA Widget Runtime