My case is I have custom button in a form which take values from fields and using frappe.call send it to server side which then send it to a REST POST request to create a document on other site.
The problem is there are empty field in the form. And the frappe.call seems not sending the empty key:value to the server side, hence generating fail in the requests.
If I fill-in or don’t include the empty fields, the script run sucessfully and post a document.
How should I properly handle this empty fields?