Buy Now
Sign in

Checkbox : pass value TRUE/FALSE instead than 1/0

M.Abletech , May 07 at 10:20
M
M.Abletech
Hi,
I wish I can pass throu checkbox boolean value: true/false, instead of 1/0.
How can I do that with visual designer?
Thanks!
GreyHead
Hi M.Abletech,
I'm not sure that you can do that in the visual designer. What exactly do you need to do with those values?
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
M.Abletech
Hi,
I got an integration with an ERP so I need to insert the expected values.
How would you do it? What code would you use instead?
Thanks!
H
healyhatman
You're already doing that - 1 / 0 works pretty much the same as true/false.
You can pass any value you want. Set "value" to what you want to send if it's checked, and set the ghost value for when it's not checked.
And you can just use 1 and 0 you know - 1 evaluates to true, and 0 evaluates to false. If you want true/false leave it as 1/0, because if you put "true" and "false" it'll send the string values.
Web developer at SkySpider.com.au
M
M.Abletech
Thanks Healyhatman! I was forgetting about ghost value