Different checkboxes for same attribute

Post here questions and problems related to editing and publishing DITA content.
Raga Mounika
Posts: 49
Joined: Mon Mar 28, 2016 3:54 pm

Different checkboxes for same attribute

Post by Raga Mounika »

Hi,

For my GUI customization I have to use 2 checkboxes for a a single attribute.
For example:
For an element I need two checkboxes test1, test2. On clicking on both the checkboxes(test1, test2) the value should be "outputclass=test1 test2"
and test2 is defaultly selected.

Is it possible to have 2 checkboxes with same outputclass ? If so please help with the possible code.

Thank you!

Regards,
Mounika
Raga Mounika
Posts: 49
Joined: Mon Mar 28, 2016 3:54 pm

Re: Different checkboxes for same attribute

Post by Raga Mounika »

Hi Team,

It is working fine with multiple values for a single attribute.
But how to keep a value as checked by default.

Consider the example of test1, test2 checkbox for outputclass attribute.
test2 should be defaultly checked and on unchecked the test2 it should show as outputclass=notest2.

Thanks,
Mounika
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Different checkboxes for same attribute

Post by Radu »

Hi Mounika,

So for your first question you used something like in the multi checkbox form control example posted here, right?

https://www.oxygenxml.com/doc/versions/ ... ditor.html

About your second problem:
test2 should be defaultly checked and on unchecked the test2 it should show as outputclass=notest2.
So the element does not have the @outputclass attribute set on it but you still want one of the checkboxes to be selected?
We do not have support for this so a workaround would be for you to implement your own Java-based form control:

https://www.oxygenxml.com/doc/versions/ ... trols.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Raga Mounika
Posts: 49
Joined: Mon Mar 28, 2016 3:54 pm

Re: Different checkboxes for same attribute

Post by Raga Mounika »

Hi Radu,

Thank you very much for the information :)

Regards,
Mounika
Post Reply