Help with mailto link in Modal popup

CHS_GGB
Tera Contributor

Hello Devs.

I have a Catalog Item that has a special Client Script which is triggered when the Submit button is clicked...  The script displays a Modal popup which happens to include a "mailto" type anchor tag.  But it seems like anchor tag is not getting rendered in such a way that the actual tag/link is CLICKABLE.  The "mailto" property seems to be getting lost or stripped out.  What am I doing wrong, please?  Thanks.

 

Screenshot:

1.png

 

Script:

 

function onSubmit() {

    var message = 
        'Please reach out to <a target="_blank" href="mailto:XYZ@chsinc.com">XYZ@chsinc.com</a> if you have any questions or should you require urgent access.';

    if (typeof spModal != 'undefined' && !g_scratchpad.crm_confirm) {
        spModal.alert(message).then(function(confirmed) {
            if (confirmed) {
                g_scratchpad.crm_confirm = true;
                g_form.submit();
            } else {
                g_scratchpad.crm_confirm = false;
            }
        });

        return false;
    }

}

 

 

Output:

2.png

 

Notice that there is no "mailto" property on the rendered anchor tag.

0 REPLIES 0