How to set value of checkbox content control as true or false.
I know how to do it in checkbox form but I am unable to find it using API for content control
Hi @arshaim39
It looks like you might want to use this method to set the checkbox value:
https://api.onlyoffice.com/docs/office-api/usage-api/text-document-api/ApiCheckBoxForm/Methods/SetChecked/
We’ve come across a similar challenge with checkboxes before in this thread:
https://forum.onlyoffice.com/t/the-radio-box-created-using-builderapi-could-not-be-selected/5187
Could you let me know if I’ve got your request right?
Thanks for your response
I know this method to check the checkbox but it just works in form not content control checkbox
I want to check the checkbox programitically using execute method but I don’t know which method it will take as first parameter
Basically I want to have checkboxes using content control and when someone select any checkbox, other checkboxes should unchecked just like how radio input works but all this I want using content control not using form methids
Is there any update?
Currently, we do have methods like AddContentControlCheckBox and ContentControlCheckBoxProperties
https://legacy-api.onlyoffice.com/plugin/executemethod/text/addcontentcontrolcheckbox
https://legacy-api.onlyoffice.com/plugin/global#ContentControlCheckBoxProperties
but as for dynamically unchecking other checkboxes when one is selected — similar to radio button behavior — I’m not sure if that’s fully supported at the moment.