Disabling a value in multiple check box form control
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Disabling a value in multiple check box form control
Post by Raga Mounika »
Hi Team,
I am using Oxygen Author 18 plugin in eclipse domain. I am having 3 values a,b,c as a multiple value checkbox for an element 'x'. As per my requirement when 'a' is selected 'b' value should be disabled automatically( user should not select 'a' and 'b' both at a time) . Is it possible to disable a particular value in multiple checkbox. If so please help me with the proper code.
Regards,
Mounika
I am using Oxygen Author 18 plugin in eclipse domain. I am having 3 values a,b,c as a multiple value checkbox for an element 'x'. As per my requirement when 'a' is selected 'b' value should be disabled automatically( user should not select 'a' and 'b' both at a time) . Is it possible to disable a particular value in multiple checkbox. If so please help me with the proper code.
Code: Select all
*[class~="topic/x"]:before(5) {
content: oxy_combobox(
edit, "@outputclass",
editable, false,
values, ",a,b,c",
columns, 9,
fontInherit,true);
}
Mounika
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Disabling a value in multiple check box form control
Post by alex_jitianu »
Hi,
I see that the sample code uses a combo box form control (oxy_combobox()). I assume you meant to use oxy_checkbox(), right?
Should these check boxes be mutually exclusive? Selecting one should uncheck all others? If the answer is yes then you can do it like this:
If the user should be permitted to select different combinations (like selecting 'a' and 'c') then I'm afraid the default check box form control can't be used. You can implement a custom form control. If you want to go on this path please let me know and I will send you the source code for the built-in check box form control. It should take to much work to enhance it.
Best regards,
Alex
I see that the sample code uses a combo box form control (oxy_combobox()). I assume you meant to use oxy_checkbox(), right?
Should these check boxes be mutually exclusive? Selecting one should uncheck all others? If the answer is yes then you can do it like this:
Code: Select all
*[class~="topic/x"]:before(5) {
content:
oxy_checkbox(edit, '@outputclass', values, 'a', labels, 'Male')
" "
oxy_checkbox(edit, '@outputclass', values, 'b', labels, 'Female');
" "
oxy_checkbox(edit, '@outputclass', values, 'c', labels, 'Female');
}
Best regards,
Alex
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service