A possible solution could be the following:
-
Create a hidden input field(s) on ‘Form3’
-
Add a event listener to you’re hidden input fields, where you update you’re
routes
variable and possible update the map via the library you’re using to display the map? -
When opening the component you can use data binding to update the hidden input(s) on
Form3
Some usefull resources data binding topic and data binding docs
Note: if the library doesn’t have a refresh method try refreshing the component, you can trigger that on the hidden input fields event listener via the anvil UI
Succes