cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Trigger to change heading to default font

dchaves-2
5-Regular Member

Trigger to change heading to default font

Hello Everyone!

 

I am trying to build a trigger that changes the font size of an Item to H2  everytime the category "Heading" is chosen automatically. My knowledge of javascript is somewhat limited. I've spent a couple of days trying to achieve that, but I am getting errors. 

Would someone kindly post a simple script of how that can be achieved? That'd be much appreciated!

Danilo

1 REPLY 1

Hello Danilo,

in my projects, we were often discussing this requirement. The risk is that the user will set the category Heading, save the node then, and then the text format and any other formating, like Tables, Images, Allignment, Coloring will be removed.

Therefore, my last customer decided to go with a Java Routine with Preview option (instead of a trigger).

If you are interested, then please send me a private message with your email address.

Volker

 

Announcements


Top Tags