auto-populate email address in record producer field

nathantenaglia
Tera Expert

Hi all,

I'm building a record producer to capture a specific incident with one of the fields requiring a contact email address.

In most cases we already have this information available within the Sys_User table which means I should be able to auto-populate the field unless the user wants to change it to an alternative address.

The auto-population is working for me

I've setup the following:

Table: Incident

Type: Reference

Question: Email Address

Type Specifications

- Reference: User (sys_user)

Default value: javascript:gs.getUser().getEmail()

However the form field just loads the getUser detail (full name) rather than the email address.

Can anyone see what I'm doing wrong?