REST API - POST request body #3802
Replies: 5 comments 6 replies
-
You will need to do then... |
Beta Was this translation helpful? Give feedback.
-
I did this and then in the request body, the array is automatically turned into a string in request body. Eg:
|
Beta Was this translation helpful? Give feedback.
-
Hello, I face exaclty the same problem and it is not working... any idea? Tahnk you |
Beta Was this translation helpful? Give feedback.
-
hey try using
and in your form submit actions you just keep the same
|
Beta Was this translation helpful? Give feedback.
-
Using a simple helper function did the trick. Directly returning an array in bindings doesn't work. function arrayToString(arr) {
return `[${arr.map(item => `"${item}"`).join(", ")}]`;
}
return arrayToString($("Create User Form.Fields.roles")) |
Beta Was this translation helpful? Give feedback.
-
I am sending Budibase form data to an external POST request API. The schema looks like below
In that Budibase form, I have a text field called
countries
. In that field, the user can type by commas likeUS,UK,CH
. While submitting I need to split this string and send it as an array field instead of a string(Screenshot below).Thanks!
Screenshots :
Beta Was this translation helpful? Give feedback.
All reactions