<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>richTextItem, safeLink issue</title><link>https://community.appian.com/discussions/f/new-to-appian/28821/richtextitem-safelink-issue</link><description>Hi, 
 I have a text field where user is entering website. I am using below line of code to provide a link to the user to navigate to the website. 
 Issue is when user to try to enter link &amp;quot;www.google.com&amp;quot; or &amp;quot; google.com &amp;quot; and when they came to the link</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113526?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 00:36:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74c21cac-a7d2-4b09-a8b1-ae7fb8a23891</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Thank you all for your suggestions. Really appreciate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113517?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 16:59:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bcda979-33dd-4c62-afdc-5b019720dfbd</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;To&amp;nbsp;simplify the data entry of&amp;nbsp;a fully qualified url, I would simply replace any existing occurrences&amp;nbsp;with an empty string and then normalize it at the end. You should also validate it to make sure it is a valid URL, I would suggest using a&amp;nbsp;regular expression&amp;nbsp;for this.&amp;nbsp;&lt;a href="/b/appmarket/posts/regular-expression-functions"&gt;https://community.appian.com/b/appmarket/posts/regular-expression-functions&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!value: &amp;quot;https://google.com&amp;quot;,
  concat(
    &amp;quot;https://&amp;quot;,
    reduce(
      fn!substitute,
      local!value,
      merge({ &amp;quot;http://&amp;quot;, &amp;quot;https://&amp;quot; }, { &amp;quot;&amp;quot;, &amp;quot;&amp;quot; })
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113513?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 16:29:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5a2fe9d-90e3-4be0-860c-834c521c00e1</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You will need to verify it one way or another - there are numerous Appian text functions which you could use to do this, depending on how strong the need will be - you could use like(), &lt;a href="https://docs.appian.com/suite/help/23.1/fnc_text_left.html"&gt;left()&lt;/a&gt;, regexMatch, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113511?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:56:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbb8563f-0c98-4b96-8e7b-3de186fd3784</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;I have to find whether user entered &amp;quot;http://&amp;quot; or &amp;quot;https://&amp;quot; then in this case also, I can use like() function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113510?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:25:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a9dd7ea-f2ac-44be-8f2f-d4ef3bf9ef37</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;But before you do this, make sure to check if the URL already consists of this. You can do this using like() function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113509?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:21:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8775e1a-6780-44cb-a93b-c295151dee0e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;concat(&amp;quot;https://&amp;quot;, local!yourUrl)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113508?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:19:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5966794-0bec-46d9-927e-91afaba88729</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;How to i&lt;span&gt;nsist that a fully qualified url entered by the user. Is there a way to use any kind of function to do this in Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113507?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:18:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:008e6420-720b-4059-a254-035cd03e18b6</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;ERROR Details:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;An Error Has Occurred&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;The record view does not exist or you do not have permission to see it. (APNX-1-4205-015).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Users may enter or may not enter http// or https://, because of free text field.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113506?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:46:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ba900b5-c201-4bcd-8559-2ddb0b8dd0ba</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I believe you need the full URL e.g. for your example this needs to be:&amp;nbsp;&lt;a href="https://www.google.co.uk/"&gt;https://www.google.co.uk/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to examine the value entered by a user and validate it (which you should be doing anyway) and perhaps add the https:// prefix if they haven&amp;#39;t already provided it. Or you could simply insist that a fully qualified url is provided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: richTextItem, safeLink issue</title><link>https://community.appian.com/thread/113504?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:00:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0f94f2e-a563-4154-8599-ed793b9287cb</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="170215" url="~/discussions/f/new-to-appian/28821/richtextitem-safelink-issue"]they came to the link and hit it is throwing an error.[/quote]
&lt;p&gt;I don&amp;#39;t have many suggestions without first knowing some detail about the error message the user is getting.&amp;nbsp; Why not post the error text and/or a screenshot at least?&lt;/p&gt;
&lt;p&gt;The two things I can think of in advance:&amp;nbsp; 1) are you doing any sort of verification that the user is typing a valid URL?&amp;nbsp; 2 ) Are you appending &amp;quot;http://&amp;quot; (etc) to the beginning of the URL being supplied, or are you assuming they&amp;#39;ll type it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>