How to show user email id in interface configuration.

 I am having a scenario, as a part of my requirement i need to  show user email only my interface. I created picker user/ group. its shows names. but i want to show email for user my interface.

  Discussion posts and replies are publicly visible

Parents
  • You cannot configure the User Picker to display the email address in place of the User's 'display name', but you could derive the email address as suggested by the other responses, and display that as an additional piece of data in the form:

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            width: "NARROW_PLUS",
            contents: {
              a!pickerFieldUsers(
                instructions: if(
                  isnull(ri!selectedUser),
                  null,
                  fn!user(ri!selectedUser,"email")
                ),
                label: "User Picker",
                labelPosition: "ABOVE",
                value: ri!selectedUser,
                saveInto: {
                  ri!selectedUser
                },
                validations: {}
              )
            }
          )
        }
      )
    }

Reply
  • You cannot configure the User Picker to display the email address in place of the User's 'display name', but you could derive the email address as suggested by the other responses, and display that as an additional piece of data in the form:

    {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            width: "NARROW_PLUS",
            contents: {
              a!pickerFieldUsers(
                instructions: if(
                  isnull(ri!selectedUser),
                  null,
                  fn!user(ri!selectedUser,"email")
                ),
                label: "User Picker",
                labelPosition: "ABOVE",
                value: ri!selectedUser,
                saveInto: {
                  ri!selectedUser
                },
                validations: {}
              )
            }
          )
        }
      )
    }

Children
No Data