Overwriting Submission URL with fx-send action

Sometimes you want to set a value to use in a submission URL somewhere in context of your UI. This requires you to create a data node somewhere, set it's value in context of the UI and then use that on your submission URL. This may lead to redundant and repetitive markup.

fx-send with URL

To simplify such scenarios you can specify the URL on the fx-send action allowing inscope values to modify the submission URL.

The control in the example below has a send action attached to it value-changed event. It passes the URL to the submission 'sub1'

Intially the submission has an empty URL. Once you change the value of the control and hit Enter the send action will evaluate the URL attributes value inscope.

If you had given 'hello' as a message this resolves to:

#echo?message=hello
The send action will overwrite the URL just once for its execution. The original URL attribute on fx-submission stays untouched meaning that later executions will use its original URL unless overwritten again.