Trying to click a button next to a UI element

Hi
I’m using a CMS for editing a form, I’m trying to add a field selected from the left column to add it to an existing form by clicking on the blue (arrowed) button.

The short version :
Select a field from the right
Add to the left by clicking on the blue button.

The difficulty I’m facing is that there are several blue buttons on the form without any unique attributes.
So the idea is to get the idx of the UI element before the blue button that I need to click on and add +1 to target the right blue button.

When I use get attribute or even select Item to target the UI element, there is no Idx for any of the UI elements of the form

Before selecting a field in the left column

After selecting a field in the left column

HTML structure of the UI element

HTML structure of the blue button (which is identical for all blue buttons)

Maybe my solution is not optimal, and I need to approach the task from another angle, any Ideas to help are welcome.

Thank you in advance

Use Anchor Base Activity

Use UiPath’s Anchor Base activity to associate a reliable nearby element (anchor) with the “+” button you want to click.

Steps:

  1. Drag Anchor Base activity into your workflow.
  2. In the Anchor section:
  • Use Find Element or Find Text to locate the newly added field label (e.g., “Nom”, “Prénom”, or a placeholder area related to the selected field).
  1. In the Action section:
  • Use Click activity and indicate the “+” blue button next to the anchor field.

@aminekacem

as per the screenshot looks like anchor base can help here

use prenom or nom as anchor and click on blue

cheers