Skip to main content
hema.mathivathanan
November 27, 2023
Question

List of custom field

  • November 27, 2023
  • 3 replies
  • 0 views

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
    November 27, 2023

    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
    November 27, 2023

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

    stewart.burchell
    November 27, 2023

    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)
        )
      }
    )