I have a form where images amongst other things are submitted. I need to be able to relate back to the original webform submission where they were submitted in a Drupal View (that is not based on Webform submissions themselves) and so I created a hidden field to store the submission url on the webform itself but it does not get written. I know I can use [webform_submission:url] on the confirmation screen and emails.
I've tried using [webform_submission:token-view-url] but this causes an error on saving that element with respect to rendering the route. The update token, [webform_submission:token-view-url] will save without error and does save but does not give a usable URL.
I assume this is a 'timing thing' where the webform submission does not actually complete and get this information until it is saved etc. Is there a way to do this easily?