<?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>Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/discussions/f/user-interface/38278/handling-tab-characters-in-appian-text-fields</link><description>I conducted a test where I copied a tab character from Notepad and pasted it into an Appian text field. Appian recognizes the tab character as a special character rather than treating it as empty spaces. 
 How can I configure or validate this so that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144169?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 16:28:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:932fe3db-96bf-4f97-a3e6-909ae9cb0a51</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I guess it depends on your use case.&amp;nbsp; I haven&amp;#39;t experimented with it all that much yet but I haven&amp;#39;t had the need to keep the input totally blank in spite of background HTML tags.&lt;/p&gt;
[quote userid="293911" url="~/discussions/f/user-interface/38278/handling-tab-characters-in-appian-text-fields/144167"]IMHO too much unnecessary verbosity[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144168?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 15:38:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d27827f-da07-4e9f-8dec-7ff16cdcca88</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;To ignore any HTML formatting in validations, you can use the striphtml() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144167?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 15:29:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:692abcfa-acea-449e-80cf-43e943269563</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;saveInto: {
  a!save(
    local!requisicao[&amp;#39;recordType!MyRecord.field,
    substitute(
      substitute(trim(save!value), char(9), &amp;quot;&amp;quot;),
      &amp;quot;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&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: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144166?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 15:21:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:268d43eb-7cdd-43e3-b404-39ca83af23e4</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;no problem. By the way, the&amp;nbsp;styledTextEditorField component inserts an empty &amp;lt;p&amp;gt;&amp;lt;/p&amp;gt; and then it doesn&amp;#39;t consider it as empty or null for validation porpoises, any insights on this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144165?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 15:18:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c95f148-3c28-449b-98bd-e69f15cb9cb3</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;ah yes, char(9) was what i was thinking of above, sorry - yeah you will probably be good to go with &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;substitute(save!value, char(9), &amp;quot; &amp;quot;)&lt;/em&gt;&lt;/span&gt; (since you said you wanted a blank space).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144164?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 15:14:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6abf4198-ed46-4c05-bdfc-31f1aa48c538</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;trim() doesn&amp;#39;t work when the character is a tab char(9)&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;saveInto: {
    a!save(
    local!requisicao[&amp;#39;value&amp;#39;],
    substitute(trim(save!value), char(9), &amp;quot;&amp;quot;)
    
    )
},&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I think we got the answer here, thank you all.&lt;/p&gt;
&lt;p&gt;However, it needs some adjustments when it&amp;#39;s a styledTextEditorField&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144163?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a73d6d8-159d-48f0-ac4c-b714cd022d2f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;be aware that the validation does not evaluate the value displayed to the user, but the value stored in your variable or rule input. So you will have to use a!save() to modify the saved value. Use the stripwith() function to remove any characters you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144162?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:57:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bfe50d1-c25a-416d-92e2-fac8f86961d8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In your saveInto, you should be able to strip out tabs and probably replace them with spaces.&amp;nbsp; trim() *might* do this but i&amp;#39;d have to check, but otherwise, you could always do it manually - the tab character is (iirc) char(12).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144161?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:47:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8041395b-3cf6-43b1-9a7e-c2d20314e6ff</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;textField(
    value: trim(recordType!Test.field)
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This was the only validation I did, it works for spaces but it doesn&amp;#39;t for tab character.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t see any reference for empty spaces on the link you sent above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144160?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:42:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b18c92d4-e3a0-40fd-9c43-121e0a888e7a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you share the code of that validation?&lt;/p&gt;
&lt;p&gt;Be aware that whether a TAB is considered empty or not, very much depends on the specific use case. So a general solution is not possible. But you can easily add your own save logic that removes any entered white space.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.4/fnc_evaluation_save.html"&gt;https://docs.appian.com/suite/help/24.4/fnc_evaluation_save.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144159?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:37:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ec3e0b4-2782-47ef-9e4b-0527f3e02095</guid><dc:creator>Silas. B. Ferreira</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1736347138123v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the &amp;quot;Objet&amp;quot; field, I performed the test mentioned above using the tab key, and it did not validate as empty as expected.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Tab Characters in Appian Text Fields</title><link>https://community.appian.com/thread/144158?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:31:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf506993-0167-40c3-a3d4-df98babef0fa</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you somehow visualize this? Some Screenshots?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>