Overwriting Submission target with fx-send action

The replace="target" mode of submission allows to insert a piece of HTML into the local HTML page. The send action allows to overwrite the target attribute of submission to allow dynamic submission targets.

fx-send with target

This example shows 2 triggers that will send the submission response to different targets. Here they are static values but could be also contain template expressions in curly brackets.

The send action will overwrite the target just once for its execution. The original target attribute on fx-submission stays untouched meaning that later executions will use its original target unless overwritten again.