Removing a dropdown in conref

Post here questions and problems related to editing and publishing DITA content.
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Removing a dropdown in conref

Post by mu258770 »

Hi team,

I have created a dropdown for an element <hazardstatement>.My requirement is to remove the dropdown when conref is added for <hazardstatement> in CSS. I tried many changes but the issue is not solved.My current version is oXygen 17.0 . Please help me in solving this issue.

Thanks,
Shabeer
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Removing a dropdown in conref

Post by mihaela »

Hi Shabeer,

Can you please give us more details about your requirements?
When you say that you have created a dropdown in an hazardstatement element you mean that you have added a form-control in the CSS?

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Re: Removing a dropdown in conref

Post by mu258770 »

Hi Team,

For hazardstatement dropdown we have used oXygen built in CSS function oxy_combobox.

Code:
oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");

Regards,
Shabeer
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Removing a dropdown in conref

Post by mihaela »

Hi Shabeer,

Here is the way you can set the combobox in a hazardstatement element, only when it does not have the conref set:

Code: Select all


*[class~="hazard-d/hazardstatement"]:not(*[conref]) {
content: oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");
}
Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply