Question

Conditional custom css

Hi,

I gone through this article (https://community.bpmonline.com/questions/how-add-custom-style-control-page-based-condition)

In the example the target is a single field but I have Divs with ID/Class in CSS code.

I tried the same example but its not working for Divs/Class. Any suggestion?

 

Regards

Like 0

Like

1 comments

Hello Muhammad,



In your case, the most simple way to achieve the task is to add desired class (or styles) to the dom element. https://gomakethings.com/two-ways-to-set-an-elements-css-with-vanilla-javascript/



https://stackoverflow.com/questions/507138/how-do-i-add-a-class-to-a-given-element



Regards,

Alex

Show all comments