Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation/Questions on webhooks/variables #236

Open
mkayontour opened this issue Feb 20, 2024 · 0 comments
Open

Documentation/Questions on webhooks/variables #236

mkayontour opened this issue Feb 20, 2024 · 0 comments

Comments

@mkayontour
Copy link

mkayontour commented Feb 20, 2024

What's this issue about?

I want to use the webhook and couldn't figure out how to use it properly.

First question, is it possible to add variables to the webhook? And if so how can I refer to a specific value in the forms.

I tried a few syntaxes like but none did anything:
With the ID: https://host/@RvdqI
With $slug: https://host/$name

EDIT:

In the logs I saw that all the fields are available at the request data.

"url":"http://localhost/@GVkRjB","data":"{\"form\":1,\"submission\":17,\"created\":\"2024-02-20T14:43:21.000Z\",\"lastModified\":\"2024-02-20T14:43:23.000Z\",\"fields\":[{\"field\":1,\"slug\":\"name\",\"default_value\":null,\"content\":\"test\"},{\"field\":2,\"slug\":\"id\",\"default_value\":null,\"content\":\"1234\"},{\"field\":4,\"slug\":null,\"default_value\":\"\\\"\\\"\",\"content\":\"\"},{\"field\":3,\"slug\":null,\"default_value\":\"false\",\"content\":false}]}"}
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

No branches or pull requests

1 participant