setting inline style within Field value

I have a requirement to display a field value property in a particular color and font. Here is the field value I am using in the left navigation panel, only the "({.WBCaseCount(ImageAssociation)})" count value should display in blue and smaller font. I am using this field value in the "Navigation Link"

Image Association ({.WBCaseCount(ImageAssociation)})

I have tried using the syntax "Image Association (color:#0081C9{.WBCaseCount(ImageAssociation)}) " but no result.

Please let me know if anyone is aware of setting inline style directly in the field value.

Added the screen shot as well.


Keep up to date on this post and subscribe to comments

October 2, 2019 - 3:19pm

Hi Malabika

Can you open developer toolbar and check what the mark up looks like currently (without the color attribute included) and see if you can check the id of the associate color that way?



October 3, 2019 - 9:09am

Can you please let us know your Pega version? Thanks

October 11, 2019 - 9:32am

Pega version 7.4

October 16, 2019 - 6:15pm

If I understand your request correctly, you only want to change the color and size of the field

Image Association ({.WBCaseCount(ImageAssociation)})  

So 'Image Association' would be normal and then '({.WBCaseCount(ImageAssociation)})' would be styled smaller and blue.

I think you should move this out of the menu and set it up as a Link that rests above the menu.

Or you can add a Dynamic Layout above the left Menu.

Set the Dynamic Layout's control format to "mimic a sentence'.

Drop a Label and set it's value to 'Image Association'

Drop a Formatted Text control after the label and set it's property value to .WBCaseCount(ImageAssociation

This allows you to style it with the skin (no overrides) as well as add an action to the Dynamic Layout if you need one.

October 17, 2019 - 3:13am
Response to wartt

interesting approach, but what if I want to show the Navigation rule as an action on button?

In this case the menu with pop up only after clicking on the button. It there any way to use, say, inline java in a Field Value rule?