How to call value for a checked box?

swmckay 26 Nov, 2014
Hello,

I am trying to call data from a field that is populated from a checked box function. I am using the checked box function to identify if the user would like to opt in to our mailing list. So when they call their profile, they should be able to see the box as checked if they previously opted in.

When a user "opts in" and checks the box, a value of "1" is saved in table. I just can't figure out how to get that value to come back as a checked box.

Any assistance is greatly appreciated!

Thanks
GreyHead 26 Nov, 2014
Hi swmckay,

The republisher should handle this automatically.

Does the checkbox have an array name ending in [] ?

I've sometimes seen problems with the 0 & 1 values not being handled correctly through the save and load steps. Does it work if you change the checkbox to use e.g. 'yes' instead of 1?

Bob



Bob
swmckay 30 Nov, 2014
Bob,

Chaning the default value from "1" to "yes" did the trick.

Thanks
This topic is locked and no more replies can be posted.