Combining text with clickable email address using mailto

Certified Associate Developer

Hi there,

I need to create on Interface, a text with a clickable email address. It should look like: For enquiries, please email emailaddress@company.com 

The email address should be interactive and clickable. After clicking on it, it should automatically open Outlook or other default Inbox and populate emailaddress@company.com in the 'To' field.

This is the code I started working on, but it looks like I'm missing something 

a!richTextItem(
text: concat("For enquiries please email ",
a!safeLink(
label: "emailaddress@company.com",
uri: "mailto://emailaddress@company.com"
)),
size: "MEDIUM"
)

Is it even achievable? Sounds simple, but I'm new to Appian, so I'm wondering if you can concat text and safelink together.

Any suggestions high appreciated.

Cheers,

  Discussion posts and replies are publicly visible

  • Hello Please, How do I make the mailto: dynamic. I want the email to provided as shown in the image:

    Thanks

    ==============================code

    ===============================================================================

                      a!sideBySideItem(
                        showwhen: not(local!isEditable),
                        item: a!richTextDisplayField(
                          labelPosition: "COLLAPSED",
                          value: {
                            a!richTextItem(
                              text: { "Email" },
                              color: "SECONDARY",
                              size: "SMALL"
                            ),
                            char(10),
                            a!richTextItem(
                              text: fv!item.emailDesc,
                              link :
                              a!safeLink(
                                label: fv!item.emailDesc,
                                uri: "mailto://fv!item.emailDesc"
                              ),
                              style: "STRONG"
                            )
                          }
                        )
                      ),