Bijan Zand
Bijan Zand

Reputation: 417

How do I hide an HTML element before the page loads in conditional fields drupal module?

I have lot fields in conditional fields module in drupal and shows or hides with module.

However, on the browser, the content loads visible for a second before disappearing, which is not what I want.

How do I set the hide the element before the page loads whilst keeping the ability to show hide it dynamically with a script or another way ?

Upvotes: 1

Views: 205

Answers (1)

Fool
Fool

Reputation: 119

Conditional fields should be adding CSS classes to those fields, which will hide them until the relevant javascript has fired.

Check you haven't written any styles which are causing them to be displayed before the javascript has run. (i.e. display:block).

Upvotes: 2

Related Questions