Need help retrieving Field ID

I am working on a form similar to Google Forms. I want to retrieve the ID from a specific field. The field has to contain the title of “UEN of Financial Institution”. If it contains “UEN of Financial Institution”, it will retrieve the field ID. I tried using the find children and find element, but it is still not working.

Find Children (1).zip (7.0 KB)

Kindly note: we cannot refer to the details as your XAML uses a non public URL

About the find children:
grafik

In general we do set a filter when using the find children activity:
e.g. <webctrl tag='label' /> getting all label elements

Depending on the HTML structure we also modify the Find Scope e.g to FIND_DESCENDANTS when the elements are not direct children

We do feel that the case also has a chance to get it solved directly without find children. But for suggesting more on this we do need to inspect the structure details of the webpage

unfortunately i am unable to give you editor rights for the form. however i can create a public open form for you to access.

Maybe a misunderstanding of what is needed is there. But lets start and feel free to elaborate more in detail

we can use a find children to get all formfields e.g.

target → form
filter <webctrl tag='DIV' aria-role='group' />
Find_DESCENDATS

and post processing all found items e.g. with other find children / subsequent retrievals

Another strategy could be:

  • Find_Children fitler to all labels
  • use the label info for the value access

For an integrated acces we can do
grafik

and can use a dynamic selector for the aria-label

From most / any element we can use get attribute and do:
grafik

  • Regex, String Replace…
    grafik

Sorry for the unclear explanation. Since I am trying to retrieve the field ID for only the field that is titled “UEN of Financial Institution”. The fields are always jumbled up, there are over 100 different forms and each form the position of the UEN will be different thus I need to check if the currentItem = “UEN of FInancial Institution”. Thanks for your help!

Also if you don’t mind could you explain it in simpler terms, as I am very new to UiPath. Thanks so much

I Updated the screenshot. Just have a look, as with the aria-label you can adress directly

grafik
grafik

And have a look at the docu link to the dynamic selectors

I’ll try it out and get back to you. Thanks for your help