Page 1 of 1

Different checkboxes for same attribute

Posted: Thu Sep 15, 2016 9:18 am
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

Re: Different checkboxes for same attribute

Posted: Thu Sep 15, 2016 11:07 am
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

Re: Different checkboxes for same attribute

Posted: Thu Sep 15, 2016 1:44 pm
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

Re: Different checkboxes for same attribute

Posted: Thu Sep 15, 2016 3:25 pm
by Raga Mounika
Hi Radu,

Thank you very much for the information :)

Regards,
Mounika