Page 1 of 1

Removing a dropdown in conref

Posted: Wed Jun 08, 2016 12:33 pm
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

Re: Removing a dropdown in conref

Posted: Wed Jun 08, 2016 2:32 pm
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

Re: Removing a dropdown in conref

Posted: Wed Jun 08, 2016 3:58 pm
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

Re: Removing a dropdown in conref

Posted: Wed Jun 08, 2016 5:53 pm
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