Having trouble mapping checkbox to Boolean type in ParseDB. The component has a default value of true but the service throws the following error when invoked:
"error": "invalid type for key ptaNotes, expected boolean, but got string"
So I added javascript to the mapping.
return Boolean();
This allows service to be invoked successfully but always passes in 'true'.
So I changed the javascript to.
return Boolean(value);
This allows service to be invoked successfully but always passes in 'false'.
Neither of these solutions are passing in the actual value. What am I missing? I am obviously new to this.
Thanks!