hi,
Where indicate value should be 1 when checkbox is cheked ?
Knowing that value come from the DB and her current value is {var:read_data11.user.politiquement_expose}
Ghost activated with value 0
thanks
HI Chistophe,
You set the default value in the Value box of the Checkbox element.
Bob
Hello Bob,
And where i put the value from db please?
{var:read_data11.user.politiquement_expose}
Regards
Thanks Healy,
I understand but there is not a more easy possibility to informe the value.
@Max : this is an issue to solve
I have many checkbox to manage.
Thanks for all
If you want the VALUE to be set by a database read, put it in the value box.
If you want to programmatically set whether or not the checkbox is checked, you'll just have to do what I said.
Hello,
Sorry but if i post this, that's because this solution doesn't work!
Value is the value takes the input if checked not the real value.
regards
Sorry I don't understand.
After checking more, there's a "checked status provider" field under Advanced.
Yes I saw and i tried several code provider but nothing plays well
Your provider will probably need to return either true/false or 1/0 to work.
{var:read_data11.user.politiquement_expose}
return 0 or 1
OK so if it returns 0 or 1, what's the problem? When it returns 1 is it NOT checking the box? And you've checked the debug output to make sure of the value?
yes
When it returns 1 is it NOT checking the box
PM me login details and I'll have a look
In final,
To save and use data from checkbox you have to :
In General
- field_name
- value : 1
In Advanced
- Activate ghost
- Value on 1
- Checked status provider : {var:read_data11.user.field_name}
- Data value : {var:read_data11.user.field_name}