I'm stuck and I can't seem to find an answer anywhere. I'm trying to change $form['confirmation']['pageId'] depending on the value of the {embed_url} merge tag which I have stored in a hidden field.
The problem is that the value of the hidden field is literally {embed_url}. How do I see the actual page the form was submitted from?