14

1 - Is using 'escape = false' the only way to display a hyperlink in an error message? Yes, otherwise it'll display as raw HTML. 2 - Is it ok to go ahead and use this technique in my scenario since only internal devs will be able to modify it? As long as the messages cannot be modified or influenced by the user, this should be okay. If the user can ...


6

Instead of using '<br><br>'+<a href="https://www.surveymonkey.co.uk">Take the survey now.</a>+ try to add your link inside single quote like '<br><br><a href="https://www.surveymonkey.co.uk">Take the survey now.</a>'+


6

You can provide an 'action' in the messageTemplateData provided to the showToast event. Here's an example where the link's action becomes creating an event which will trigger a second toast. showToast: function(component, event, helper) { var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ title: "Success!", mode: "...


6

I have not tried this myself, created on the fly from this link, but should work <lightning:card iconName="standard:scan_card"> <aura:set attribute="title"> <a href="http://www.yahoo.com">{!v.myTitleName}</a> </aura:set> <!-- actions and body markup here --> </lightning:card>


5

From Summer18 I think one should use lightning:navigation component and the pagereference object that comes along with it . The link here shows various possibilities within the lightning experience . Lightning experience internally uses these navigation API so being consistent with the same for partners makes sense . Here is a simple example <aura:...


5

According to the documentation, you can't use dynamic links for engagement splits. Note: Links containing personalization strings or AMPScript are not supported.


4

var resultsToast = $A.get("e.force:showToast"); resultsToast.setParams({ mode: 'sticky', message: 'This is a required message', messageTemplate: 'Record {0} created! See it {1}!', messageTemplateData: ['Salesforce', { **url: 'https://xx-dev-ed....


4

There's no easy way to identify these, so you'll have to manually search for them or check out your documentation. Ideally, your org's been documented by someone in a wiki, and you can easily identify these fields. You'll need to either remove them or update them to not use JavaScript. The exact method depends on the formula's behavior. The most likely ...


4

See the CTI Admin Cheat Sheet, notably: The minimum system requirements for a CTI adapter are: • For adapters built with CTI version 4.0 or higher: – Microsoft® Internet Explorer® 8; Mozilla® Firefox® 3.5; Apple® Safari® 4; Google Chrome™ 10.0 (Internet Explorer 11 isn’t supported) – Microsoft Windows® XP (with Microsoft .NET framework) ...


3

Normally we need to use the file:/// protocol (three slashes) to link to local files. <a href="file:///C:\Programs\file1.txt">Local file 1</a> <a href="file:///C:\Videos\SalesforceCI.mp4">Local file 2</a> However, because of security reasons it is disabled by most of browser. If you try to open local file, you will get an error in ...


3

HYPERLINK("/006/e?accid=" + Id , "New Opp") In a formula field for example will create a new app with the accid populated Little, hint: Click the new button and inspect the URL salesforce generate and mimic it


3

I don't know if you found the solution, but I got in the same situation, and I noticed when we pass the full url it opens in a new tab or window. <a href="https://test-dev-ed.my.salesforce.com/<recordid>" target="_blank">Open (New Window)</a> Also, I noticed that if we pass an underscore in the begin, it will open a new tab as well. <...


3

You could certainly create an expiring token to "time bomb" your page. The following steps should provide an outline: Add a field named Form_Token__c Text (32) Add a Time Based Workflow Rule to clear the value after 24 hours Update any triggers on your object (or add one if none exist) to set this token value Since I have been looking at how to generate a ...


3

As of today, it doesn't seem you can use links in toast message in LWC directly. I have created this idea to allow the ability to show links in LWC toasts. In Lighting Aura Components (LAC), the force:showToast had additional attributes for this purpose - messageTemplate and messageTemplateData. But, these attributes are not available for the ...


2

You can achieve this with the help of a Visual Force page and a Controller. In the Visual Force page put the action name in the apex:page tag itself so that the action method invoked when this page is requested by the server. Pass the Case Id and current (list view) page URL to the Controller on the click of HYPERLINK Formula field. The current Page URL will ...


2

The redirection should be managed in your client side controller using a lightning navigation event. Anchor Tag: component.cmp <aura:component> <aura:attribute name="recordId" type="String" /> <p><a onclick="{!c.handleClick}">link to record</a></p> </aura:component> controller.js /* ...


2

Lightning does not currently support record page deep-linking (i.e. a URL that definitely gets you to a specific sub-tab). However if you would just like to have it always default to the Details tab, what you should do is edit the Lightning App Builder layout for this page and select Details as the default. Save, and activate it as the org-wide default.


2

Note that Anchor Tag: <a> should not use href's according to the documentation (for your specific use case), and you should instead leverage native events such as force:navigateToSObject to redirect users towards record's as follows: in your component: <a onclick="{!c.handleClick}">link to record</a></p> controller.js ({ ...


2

Hyperlink function takes following parameters HYPERLINK(url, friendly_name [,target]) and replace url with the Web address, replace friendly_name with the link text, and, optionally, replace target with the window or frame in which to display the content. Following piece of code perfectly working at my DE considering Account's address information. ...


2

If the &%%_AdditionalEmailAttributeX%% breaks your links, you could raise a support case via the Help & Training Portal to enable all available additional email attributes. Then you can set them in the properties of your emails. For every unset parameter just an ampersand is added to the url which shouldn't break the link. The other automatically ...


2

Found this similar Known issue. Followed it's workaround, added below CSS to Community branding custom CSS. .oneAlohaPage .mask { display: none; } and that fixed the issue.


2

Please add “/”+Id instead of “Id” in your formula field as it requires to be the relative URL.


2

The later elements are physically over the earlier elements because of the repositioning. To fix this, move your anchor up in the z-index: css .THIS lightning-formatted-url > a{ ... z-index: 1; ... }


2

Another thought... You could store a secret key in a custom setting or custom metadata. When you generate a link, it will have an expiry timestamp parameter, a customer ID parameter and a hash parameter. The hash would be generated in Apex by appending the timestamp and the ID into one string, encrypting it with the secret key, generating a MD5 digest, and ...


2

Create new formula field to show phone number hyperlink. If phone is your contact number field, then the formula field will be something like HYPERLINK(('tel:'+Phone), Phone) Src: https://stackoverflow.com/a/13662222/4121395 You cannot directly hyperlink on Mobile Phone field in SF. You have to build Chrome plugin or custom SF component/page for it.


1

You need to inject javacript to open the record in same tab. Here is an example HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcSelf('/" & Id & "');} "+ " else {window.location.href='/" & Id & "'}" ,Casenumber , "_self" ) For more information, refer my blog. Different ways of navigation Update As per comment, take this ...


1

Its not possible to place a button anywhere in layout. Can be done by a inline page which simply redirects, but it would be an overkill for such a simple requirement. Possible solutions are mentioned in documentation: Hyperlink Formula Fields for JavaScript Disablement. Quoting from it: What action do I need to take? We recommend that admins begin ...


1

Thanks for the help. I managed to do it on my own. I first created a formula field on Account that returns the url of contact based on Account ID: HYPERLINK("https://csxx.salesforce.com/003/e?retURL=%2F001500000xxxxem&accid="&Id&"&RecordType=0125xxxx000E7ay&ent=Contact","Click Here!") Then I added this line to VF Page: <apex:...


1

The strange thing is that I'm unable to reproduce the issue you are experiencing. I'm using Classic Content, but perhaps you are using Content Builder? Anyway, here's what I would try. Paste the following code into your email and determine if either of the following two links work: <!DOCTYPE html> <html> <body> %%[ var @href, @...


1

You can simply use anchor tag to achieve this functionality <apex:outputText label="fieldLabel" value="{!Object.fieldValue}"/> <a href="javascript:window.open('url')"> Change </a> And with the use of outputLink: <apex:outputLink onclick="javascript:window.open('url')"> Change </apex:outputLink>


Only top voted, non community-wiki answers of a minimum length are eligible