Skip to main content
May 26, 2025
Question

Lack of customization for recordActionField primary recordActionItem

  • May 26, 2025
  • 4 replies
  • 0 views

a!recordActionField(
  actions: {
    a!recordActionItem(
      action: 'action_1',
      identifier: ri!identifier
    ),
    a!recordActionItem(
      action: 'action_2',
      identifier: ri!identifier
    ),
    /* this last one should be the primary */
    a!recordActionItem(
      action: 'action_3',
      identifier: ri!identifier
    )
  },
  style: "TOOLBAR_PRIMARY",
  display: "LABEL_AND_ICON",
  align: "END"
)

I have the following code above with the following style "TOOLBAR_PRIMARY". I would like to be able to set which action is the primary one.

I haven't seen such option. It always applies the style to the first one one the left. What if I want the one on the middle to be the primary action? Or the last one on the right to be the primary?

I appreciate any hints on this since then. 

4 replies

stefanhelzle0001
May 26, 2025

When looking at this from a UX perspective, I think it makes a lot of sense to make the top most stand out.

And, when it is really important to you to make it look different, you can just put each action into a separate actionField() and style them the way you want.

May 27, 2025

TOOLBAR_PRIMARY style highlights the first button and there is no built-in way to specify which individual action should be styled as primary.

May 27, 2025

 [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] and [mention:1c6f36915a6c4d3a8444dd997b2ebc07:e9ed411860ed4f2ba0265705b8793d05] 

Is there a way of doing this part of "Ações" ?

"Ações" stands for "Actions"

It is a `a!gridField`

stefanhelzle0001
May 27, 2025

I don't think so.