Hi, I’m trying to filter a list that uses a REST API as a data source in Softr. I need to know how to include the value of a filter in the API call configuration.
I’m aware that variables can be used with {} placeholders, such as {LOGGED_IN_USER: someField} for logged-in user fields. However, I’d like to understand what placeholder or variable can be used to retrieve the value selected in a filter applied to a list.
Any examples or additional documentation would be greatly appreciated. Thanks!
Welcome to the community and thanks for your post!
I’ll start by saying this is a brand new feature and we are still working to add to it and improve it across the board. With that being said, you can use placeholders such as the variables you referenced in your post above.
In addition to those, you can also use placeholders like {filter.field_from_rest_api} in the request body or request parameters. When mapping the same field in inline filters in studio-ui, the mapped field value will later be replaced with the value from the filters.