Question

2
Replies
550
Views
Gerg?T70 Member since 2016 22 posts
Saltech Consulting
Posted: 3 years ago
Last activity: 3 years 2 months ago
Closed

Action "Set style" not really working...

Hello,

Under pega version 7.2.1 I would like to use the built-in "Set style" action to add a class name to an element after it is clicked.

I did set up an "action set" to listen on click events and used the set style as an action.

However, this simply does not work (other actions as for example Run Script work). I have tried these combinations:

ActionStyle setting typeOutcome
ClickStyle Classnot working
ClickInline cssnot working
HoverStyle Classnot working
HoverInline cssworks
FocusStyle Classnot working
FocusInline cssworks

Also pretty strange that the additional style seems to be discarded if the focus on the element is lost, however, if the element was once hovered and later another element gets the hover, the previous element will still have the styles added with inline. I think this behaviour is pretty inconsistent.

Are you experiencing this issue too?

***Edited by Moderator: Marissa to update categories***

User Interface
Moderation Team has archived post
Share this page LinkedIn