score:1

Accepted answer

I had to send NOT a boolean value, but turn it into a string, to send literal "true" or "false" and not true/false.

I set up a const that checked the status of the variable and then assigned it with literal values:

const val = this.state.formData[field.name] == false ? "false" : "true";

This simple thing did the trick.


Related Query

More Query from same tag