How to check the checkbox using API? in API & Templates Posted March 4, 2021 I am very sorry for asking this but i totally do not understand how to set values of checbox using API. I have checbox field on my page with name "order_status". So i've tried few ways to make it checked but it still doesn't work: $userPage->order_status->value = 1; $userPage->order_status->add(1); $userPage->order_status->add(true); Could you please tell me how to do it?
How to check the checkbox using API?
in API & Templates
Posted
I am very sorry for asking this but i totally do not understand how to set values of checbox using API.
I have checbox field on my page with name "order_status".
So i've tried few ways to make it checked but it still doesn't work:
Could you please tell me how to do it?