Help with mailto link in Modal popup
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 08:39 AM - edited 02-08-2024 09:26 AM
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:
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:
Notice that there is no "mailto" property on the rendered anchor tag.
0 REPLIES 0