use_shipping_address_for_billing is stored as string while cp panel needs a boolean #976
-
Hi there, I have a hidden field which contains true or false depending on the "use shipping address for billing". In the JSON data of orders (I store orders as entries) the value is now:
In the CP this value needs to be a Boolean. How do I make sure this is stored as a boolean instead of a string? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What does the hidden field look like in your Antlers template? |
Beta Was this translation helpful? Give feedback.
-
I use the following inputs depending on the checkbox state (with quotes around the value has the same result). I also tried true false with and without quotes:
|
Beta Was this translation helpful? Give feedback.
Hmm, I'm not sure, I'll need to give it a go myself when I have some time.
Maybe try
value="on"
/value="off"
?