Skip to content

fix: Pass in params into action#5513

Open
G-OD wants to merge 2 commits into
webstudio-is:mainfrom
G-OD:fix-webhook-form-action-params
Open

fix: Pass in params into action#5513
G-OD wants to merge 2 commits into
webstudio-is:mainfrom
G-OD:fix-webhook-form-action-params

Conversation

@G-OD

@G-OD G-OD commented Dec 14, 2025

Copy link
Copy Markdown

Description

This fixes an issue where you can't pass system params into a webhook form action.

Steps for reproduction

  1. Create a webhook form
  2. Define an action with system.params in it
  3. Get undefined

Code Review

  • hi @kof, I need you to do
    • conceptual review (architecture, feature-correctness)
    • detailed review (read every line)
    • test it on preview

Before requesting a review

  • made a self-review
  • added inline comments where things may be not obvious (the "why", not "what")

Before merging

  • tested locally and on preview environment (preview dev login: 0000)
  • updated test cases document
  • added tests
  • if any new env variables are added, added them to .env file

@kof

kof commented Dec 16, 2025

Copy link
Copy Markdown
Member

Looking into this, can you please describe a practical use case? for me to better understand what this unlocks

@G-OD

G-OD commented Dec 16, 2025

Copy link
Copy Markdown
Author

Looking into this, can you please describe a practical use case? for me to better understand what this unlocks

One use case maybe having to post to another endpoint depending on what URL path you're on. Lets say you have a comment section for a blog post and you have the endpoint /posts/123, and to post a comment you need to post to /posts/123/comment. This would require you to dynamically create the action URL using the data variables (in this case the system params).

@G-OD

G-OD commented Feb 10, 2026

Copy link
Copy Markdown
Author

Hello there. Is it possible to get this reviewed? If not it's probably worth removing the variables from the action URLs as the UI suggests this is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants