As mentioned by @Oleg Isonen on
Github I created the workaround for a redirect of a webhook form.
→ So I added an
HTML embed inside the webhook form's
success box with this code (and changing it to my path).
<script>
location.href = '/whatever'
</script>
This worked great for a static link/slug/redirect.
Now I wanted to make it
dynamic based on the Slug in AirTable (think redirection based on a specific product for example).
In the Webstudio University its documented
how to create dynamic links for the filtering of the Airtable data by the slug (which worked perfectly).
https://example.com?filterByFormula={YOUR_COLUMN_NAME}="${system.params.YOUR_DYNAMIC_PATH}"
Now I wanted to do the same (creating a dynamic URL with the slug) and add it into Oleg's workaround code mentioned above (inside of an HTML embed in the success box of the webhook form).
It always says: "Unexpected token".
I guess it doesn't work the same way because the Airtable integration in the Variables panel is based on
JSON and the embed on
HTML?
I tried every method that came to mind (and from ChatGPT)… still doesn't work.
Does anyone has an idea? Any solution is much appreciated since this is a core part of my next project I am working on right now.