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
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
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
And where i put the value from db please?
{var:read_data11.user.politiquement_expose}
Regards
OK so in the value box of the checkbox put 1
In your event BEFORE you display the section, do a custom code with
In your event BEFORE you display the section, do a custom code with
{data.set:checkbox_name$(var:read_data11.user.politiquement_expose)}
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
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.
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 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.
Your provider will probably need to return either true/false or 1/0 to work.
Actually no just tested it out. As long as your provider isn't returning 0, any value should check the box.
So put in (type it out don't copy paste)
Just make sure you use debugged to check what value politiquement_expose is actually returning.
So put in (type it out don't copy paste)
{var:read_data11.user.politiquement_expose}if that's what you want to use of course.
Just make sure you use debugged to check what value politiquement_expose is actually returning.
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?
PM me login details and I'll have a look
This topic is locked and no more replies can be posted.