0

I Want to change few field colors dynamically.

I couldn't do that directly like the tree view , to do the same on the form view we should use JavaScript (correct me if i'm wrong) , i'm trying a solution ,but i have a problem i don't know how to access to the DOM of a form-view ,can you help me with this ?

Ashish Bahl
  • 1,482
  • 1
  • 18
  • 27
Praflow
  • 1
  • 2

1 Answers1

0

Check the web repo for examples. For the tree view search for "color" there. Here are a couple:

The approach is the same: you override/extend the class of the widget via JS, like here, no matter if is a list/tree view or a form view.

This one for instance acts on form view. As you see, is plenty of examples. Still, you should provide more info on what you are trying to achieve.

Last but not least, read the official docs about javascript and check stack overflow for existing answers.


Community
  • 1
  • 1
simahawk
  • 2,421
  • 1
  • 16
  • 22