Skip to main content
hema.mathivathanan
Employee
Nov 27, 2023 12:22 PM UTC
Question

List of custom field

Hi,

I have many users and I have custom field 3. I want to get the list of values in the custom field 3. 
Is there any function to get the list of specific custom field values?

Thanks in advance!

    3 replies

    stewart.burchell
    Employee
    Nov 27, 2023 12:28 PM UTC

    You can use the user() function. Here I'm getting Custom Field 3 from the logged in user:

    fn!user(fn!loggedInUser(),"customField3")

    hema.mathivathanan
    Employee
    Nov 27, 2023 12:31 PM UTC

    Thanks!, but I want it for all the users. No specific user.

    stewart.burchell
    Employee
    Nov 27, 2023 12:38 PM UTC

    Then iterate through your list;

    a!localVariables(
      local!users: {
        touser("lily.fraser"),
        touser("admin.user"),
        
      },
      {
        a!forEach(
          items: local!users,
          expression: a!textField(label: fn!user(fv!item, "customField3"), readOnly: true)
        )
      }
    )