Adding an information icon to a Boolean field

Community Alums
Not applicable

Hi,

 

we have a requirement to add some additional information to a Boolean field on the task table. It is important for the users to know how this field works as it is related to some critical business processes. We do not want to have the field shown all the time but only when user either clicks on an icon or hovers over it.

 

What we tried so far but didn't fit the requirements completely:

1. Client script with g_form.showFieldMsg  - this works nicely but the message is present all the time. Making conditions is possible but we want the information to be easily available to the users at all times but not crowding the form view.

2. Hint on the label - works well but only in backend and not in the configurable workspaces.

3. Field decorator - UFX Client Action (see field_decorator_config.png for the complete configuration). Works well on any field that has the entry box related to it but not on the Boolean / checkbox fields.

 

Could we change the configuration of the field decorator to make it work on a Boolean field? Is there an option that we missed to fulfill this requirement?

 

Thank you for your help,

Jan Ujcic

 

 

4 REPLIES 4

Slava Savitsky
Giga Sage

Other options I can think of are:

  • Annotations (but they have pretty much the same disadvantages as showFieldMsg)
  • Decorations that can be added using ref_contributions dictionary attribute (but this only works in the platform UI if I am not mistaken)

Community Alums
Not applicable

Hi Slava,

thank you for these ideas. I've tried "Annotations" already but they aren't much better than the showFieldMsg as you suggested.

 

I've looked into "Decorations" but it seems they are limited to reference fields, I'm not sure how I can apply them to a Boolean field. I'll do some more tests to see if I missed something.

 

If you have any other ideas or suggestions, please let me know.

To add a decoration macro to a non-reference field, you simply need to use field_decorations dictionary attribute instead of the ref_contributions attribute.

 

Here is an extract from the Dictionary attributes product documentation article:

SlavaSavitsky_0-1719497821281.png

 

Community Alums
Not applicable

Thanks! I did manage to get it working but I can only see it in the classic UI and it is still just static text.

 

I could probably make some custom logic in the UI Macro but if the whole mechanism doesn't work in Configurable Workspaces then this also doesn't fit our requirements.