Forums

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

M.Abletech 07 May, 2018
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 07 May, 2018
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
M.Abletech 07 May, 2018
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!
healyhatman 07 May, 2018
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.
M.Abletech 07 May, 2018
Thanks Healyhatman! I was forgetting about ghost value 🙂
This topic is locked and no more replies can be posted.