Add a decorator for the non reference field

Raj Muppavarapu
Giga Contributor

I have below requirement which is just killing my time.

Create a decorator to the right of each field that when clicked will display the respective definitions.

I tried options field decoration (field_decorations) and addDecoration but its not giving me what is required. The definition have more then 600 characters so they are not fitting in addDecoration.


Please let me know if you have any other approach.


Thanks.

8 REPLIES 8

DrewW
Mega Sage
Mega Sage

When you say "display the respective definitions" what do you mean, A help popup?   You can make the field name a link that opens a knowledge article, but that will be to the left.


Hi Drew,


Yes its just a popup and display the message and client wants it to be displayed on right hand side.


Mike Allen
Mega Sage

You can use ref_contributions linked to a UI Macro.


I was thinking that but it sounds like for each field the content needs to be different and my issue with a UI Macro is that unless you start to get complicated and all fancy'n stuff this could be a somewhat of a headache to maintain.   That was why my first thought was making the field a link to a KB because then updating the content is easier and the build is easier.



But Raj if they absolutely have to have an icon on the right the Mike is right, UI Macro is all you got.