[Bug]: Error in data type handling
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
When I add a text 123-test in the input widget and reference it in an API body, it gets evaluated as "123-test" and not 123-test.

Steps To Reproduce
- Create a new app and add an input widget on the canvas
- Type
123-testin the input widget - Reference it in the API body
Public Sample App
No response
Issue video log
No response
Version
Cloud - 1.8.11
@sbalaji1192 @nidhi-nair would the data type project have solved this?
This is a smart substitution problem. We're looking at the value, gathering that it is a string without immediate quotes around it and adding the quotes ourselves. Data type handling allowed us to correctly recognize the value as a string and that's all. Do we want to solve for this within smart substitution? If yes, then I'd say this is a feature request to understand context around the binding.
@nidhi-nair Are we sure this wasn't working before? I distinctly remember that if a user did not add the quotes, we would manually add it; if they did, we would not add it.
Yes, I think the way this works has always been with immediate surroundings. That's the reason the value of the second property bitlink_id evaluates correctly. We've always suggested to users that they absorb the other part of the string into the JS binding as well, as {{ "bit.ly/" + Input1.text }}
This issue is similar to the one reported here.
Closing this instead of one reported here.