Updating URL in primary action (JSON modal)

Hi team,

I have defined a schema for the primary action button as such:

"submit_action":{
                    "$ref":"#/definitions/action-primary",
                    "options":{
                        "label":"Go to post",
                        "handler":"open-url",
                        "url": "https://www.example-url.com/"
                    }
                }

Depending on what the user selects in the JSON modal, I’d like to update the label to “Go to Post 2” and the url to “https://www.a-different-url.com/”.

I was able to see the changed label name but the button still directs me to the original URL.

Any advice? Thanks.