Run Xpath formula when a repeating section is deleted or inserted
On Delete where VACATION_MASTER_APPROVAL_DETAILS is the name of the repeating section
<xf:action ev:event="xforms-delete" if="event('deleted-nodes')/name() = 'VACATION_MASTER_APPROVAL_DETAILS-iteration'">
<xf:message level="modal">SOMETHING GOT DELETED, OH NO!!</xf:message>
<xxf:script>dispatchRefresh();</xxf:script>
</xf:action>
On Insert where 'SYS_VIEW_SETTING_REP_FIELDS_SELECTION is the name of the repeating section
<xf:action ev:event="xforms-insert" if="event('inserted-nodes')/name() = 'SYS_VIEW_SETTING_REP_FIELDS_SELECTION-iteration'">
<xxf:script>dispatchRefresh();</xxf:script>
</xf:action>