You can set the email address based on the user’s first initial and the first seven characters of the user’s last name. In this example, the system performs an additional check to ensure that the values have been set before performing the concatenation. This additional check is performed to:
Allow the email address to set only when the account is first created.
Confirm that the first and last name fields have been set.
<Field name=’global.email’> <Default> <and> <notnull><ref>global.firstname</ref></notnull> <notnull><ref>global.lastname</ref></notnull> </and> <concat> <downcase> <substr> <ref>global.firstname</ref> <i>0</i> <i>1</i> </substr> </downcase> <downcase> <substr> <ref>global.lastname</ref> <i>0</i> <i>6</i> </substr> </downcase> <s>@waveset.com</s> </concat> </Default> </Field> |