Page 1 of 1

Content Completion - Multi Values Select for Allowed Values to an Attribute

Posted: Thu Sep 25, 2025 2:16 am
by janani_kalyan
Hi,

Following the instructions in this article - https://www.oxygenxml.com/doc/versions/ ... osals.html

<valueProposals path="@type" editable="onlyAllowedItems">
<items>
<item value="stanza" listValue="true"/>
<item value="refrain" listValue="true"/>
</items>
</valueProposals>

Per the article, The <item> element can have a @listValue attribute, which can be set to true if you want those items to be part of a list attribute value (such as attr="item1 item2").
The content completion works as expected in text, but in author mode attributes window/popup, it allows only single select of the value. How can I have content completion where in the Author mode, I can have a controlled list, but it allows multi-selection of values with space as delimiter?

Re: Content Completion - Multi Values Select for Allowed Values to an Attribute

Posted: Thu Sep 25, 2025 8:22 am
by Radu
Hi,

This is quite tricky to get right, what we do when you start editing the value of the attribute in the Attributes view is that instead of choosing a value from the combo box list which shows up you can press Ctrl-Space and have another content completion list show up, choose from that, then again Ctrl-Space and choose a second value and so on.
Some people who want to make the editing of certain attributes more straight forward in the Author mode modify the CSS used for visual editing and include form controls like "multipleCheckBox":
https://www.oxygenxml.com/doc/versions/ ... ditor.html
or pop-up form control:
https://www.oxygenxml.com/doc/versions/ ... ditor.html

The popup form control looks visually like my attached screenshot
Screenshot 2025-09-25 at 08.21.16.png
Regards,
Radu