Skip to main content

I’d like to create a custom hyperlink field that would grab the Id from the row in context and append it to the URL.

Example Table:
Account 1    www.example.com/Account1Id
Account 2    www.example.com/Account2Id
Account 3    www.example.com/Account3Id

I’ve tried using a HTML template field, but that doesn’t exactly work. My JS knowledge is very limited. Can anyone point me in the right direction? 

Hi Josef, if you’d like this to be part of a table, you can do the following:

Click on your table > Add Field(s) > Template. This will add a template field to your table, which you can manipulate to display in many different ways.

Click on the new Template Field that was just added, and up in the Properties pane, check the “Allow HTML” checkbox. Then, just above that checkbox, you can add HTML like the following:


<a href="<a href="http://" rel="nofollow" target="_blank" title="Link https//skuidna35visualforcecom/Idlink/a">https:&#47;&#47;foo&#46;na35&#46;visual&#46;force&#46;com/{{{Id}}}">link</a></a>

You would replace everything up to the / with the portion of the URL that precedes the ID number. Using {{{Id}}} will insert the record’s id number as text-only. (i.e. without any Salesforce metadata)


If you’re not using a table, you can take this kind of approach with a “template” component as well. Hope this helps!


Thank you! I was using double “{” instead of triple…