1) How, or with what classes and events (API), you can change the section icon, or change the font color of the section that has a certain property set.
For example, I set a custom property for sections, and depending on the value of this property, you need to change the icon of this section to any other in the administrative panel, or make the font red.
2) How can it be possible to set an onClick
event with a js script call in the element editing form, for a certain property with the code "ATT_BRAND"?
More details:
In the information block setting, in the "File with the element editing form:" field I connected my php file, pasted the code there, as it is written in the documentation, in this code I found a piece of code where the properties are output via the _ShowPropertyField
function, just above the property output code I wrote this:
<? if($prop_fields["CODE"] == "ATT_BRAND") { ... } ?>
How now this property (input'u) add your event?