Join the Webstudio community

Updated 4 months ago

Value expect string value

At a glance

The community member is using a Webhook form with a hidden text input that gets data from a resource, and the value is always a number. They are receiving a warning saying "Value expect string value," but this is not causing problems in populating the data and submitting the Webhook. The community member is wondering if they should ignore the warning or if there is another way to handle this. Another community member suggests wrapping the variable in ${yourvar} to convert the number to a string, which resolves the warning.

I'm using a Webhook form with a hidden text input that gets data from a resource. The value will always be a number. I get a warning saying, "Value expect string value." This is not causing problems in populating the appropriate resource data and submitting the webhook.

I was wondering if I should ignore the warning or if there is another way to do this. Thanks!
Attachment
Value_Expect_String.jpg
J
L
3 comments
I would just wrap your variable in
Plain Text
`${yourvar}`
thatll convert the number to a string
Excellent, that removed the warning. Thank you, John.
Add a reply
Sign up and join the conversation on Discord