ONLYOFFICE DocSpace released: improve document collaboration with offices, customers, and partners. Use it for free!
ONLYOFFICE DocSpace released

Some questions about the ContentControlList

In the plugin, we can add a drop-down list using AddContentControlList, set the label with disply, and set the value with value. But I can’t get the value of the drop-down list from GetFormValue. Of course, we could have added the ComboBoxForm of the form using builderAPI, but since ComboBoxForm doesn’t set tag I can’t tell which drop-down list is used. In the current version, how do I get the value via AddContentControlList? Or how to tag a ComboBoxForm

Of course, we can use builderAPI form key to get the selected form, but I can’t get the result of the callCommand execution in the plugin, and the callCommand callback can’t get the return value, as shown in the screenshot below. I don’t know if that’s right

Hello @GGbeng
Do I understand your final goal right, that you’re looking for the way to get all values from filled out combo box (content control) and pass them to your plugin?

Thank you very much for your reply. Due to the requirements, I am developing a plugin and I want to get the value of the drop-down list added by AddContentControlList(plugin-api); Second, can we get the return value of callCommand’s func? builder-API is powerful, and it would be great to get a return value in the plugin,as shown in the screenshot below.

We’re checking the situation. I will update this thread when we have something to share.

Hello @GGbeng
We’ve rechecked the situation. Unfortunately, there’s no way to achieve your described scenario (lack of necessary methods). We added a bug to internal tracksystem (internal number - 61876).
We have started working on it.

Thank you very much for your reply :kissing_heart: