Skip to content

Api request send unchecked values as null/empty #1401

@gCharilaou

Description

@gCharilaou

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I am using x-www-form-urlencoded body for some api requests. But should be able to uncheck some values and send the rest.
This is not available currently since FF is encoding in the url also the unchecked values as null/empty

Expected Behavior

As a user I would expect unchecked values not to be included in the requested body.

Steps to Reproduce

  1. Create an api PATCH request
  2. Use the Header: "Content-Type: application/x-www-form-urlencoded"
  3. Have some variables in the requested body from different types
  4. Test the api without checking all the variables
  5. Check the api url of the response

image

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

1

Context

I would like to be able to send as body some of the defined variables and not all and the server should handle the request.
This is to limit the api requests since PATCH can update multiple variables but only couple at a time

Visual documentation

image

Additional Info

No response

Environment

- FlutterFlow version: v3.1 - 3.10.4
- Platform: Desktop app
- Browser name and version: Chrome
- Operating system and version affected: Windows 11

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions