I have a custom field that is of type "Hyperlink" ...
# ask-stanley-ai
n
I have a custom field that is of type "Hyperlink" I have an anchor in the pdf. If I write:
<a href = "${custbody_the_field}"
I'm advised the field contains characters that will break the freemarker. Understood. If I use ?url after the field to format it, I'm actually left with a string that includes "href = " and not just the url I need for the href property of the anchor.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the issue is with the way the hyperlink is being formatted in the custom field. The correct way to format a hyperlink in a custom field is to use the concatenation operator (
||
) to combine the different parts of the hyperlink. Here is an example of how to do this:
Copy code
'<a href=\"' || {my_custom_field_containing_only_the_url} || '\" target=_blank>Link</a>'
In this example,
{my_custom_field_containing_only_the_url}
is the custom field that contains the URL. The
||
operator is used to concatenate the different parts of the hyperlink. The
\"
is used to escape the double quotes in the hyperlink. Also, it's important to note that the custom field should be of type "Hyperlink" and the "Store Value" option should be checked. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858121216
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853267372
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843666613
Please provide your feedback on this answer.