<?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>Replace the &amp;quot;comma&amp;quot; character with the &amp;quot;period&amp;quot; character</title><link>https://community.appian.com/discussions/f/new-to-appian/24547/replace-the-comma-character-with-the-period-character</link><description>Hi all 
 I am following Appian standard in using a text field on a form with which to populate a decimal field in my rule input. 
 Appian standard behavior for a decimal field is that if a comma symbol is used to indicate a decimal place, the symbol is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94869?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 18:50:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e4ef74d-a1b4-45a7-b155-954ea4f0dbdb</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;Yes, I believe the same. It&amp;#39;s more safe and easy to build as he will avoid many different scenarios that need to be covered during the number typing.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94861?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 16:37:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5239023-e9e6-45fb-b268-665949557690</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;For this reason (the use case with multiple commas) it may be better to use your #3 suggestion (validation) instead of replacing the commas with periods because you&amp;#39;re less likely to encounter weird edge cases like this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94850?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:51:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7389a243-6b43-4dee-9c71-97f25a3edf71</guid><dc:creator>Stephen Kane</dc:creator><description>&lt;p&gt;Thanks Mike&lt;/p&gt;
&lt;p&gt;A bit beyond my skill level and our deadline at present, but definitely on the agenda down the line.&lt;/p&gt;
&lt;p&gt;Thanks for your input, and have a great weekend!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94848?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:48:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dbafee39-1fe7-47dc-a53a-d8c6211206cd</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;My immediate thought in that case would be to find 1 or 2 that are especially common for the purpose of a lingua franca for the country.&amp;nbsp; It might be English, which is becoming the lingua franca of the whole world.&amp;nbsp; Then there&amp;#39;s the question of how British or American do you get with the English.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ve got a nice can of worms here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94846?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:42:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7ad9c85-7247-4591-85aa-0c833169495d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I don&amp;#39;t suggest you try to cover ALL possible languages - but having more than one option (like by cherrypicking the one or two most common alternatives) would still possibly be better than &lt;em&gt;&lt;strong&gt;no&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt; options.&amp;nbsp; And once you&amp;#39;ve figured out how to flexibly implement a &lt;em&gt;small&lt;/em&gt; number of alternatives, it&amp;#39;ll likely get a lot easier to gradually implement more options, if and when the need arises.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94845?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:40:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1227bcf9-e97a-493a-a9a4-304afc74705a</guid><dc:creator>Stephen Kane</dc:creator><description>&lt;p&gt;I would look at that but this country has eleven official languages :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94843?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:33:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba170097-2608-4068-910c-f59e5d5254b9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;AFAIK the &amp;quot;proper&amp;quot; solution for this is a strong internationalization setup, providing alternative language versions of the same forms / field names / text values on existing forms, though I must admit I haven&amp;#39;t yet had the chance to design or maintain a system with a robust multi-language setup like this so I&amp;#39;m not very versed in what all needs to go into it to do an initial setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94841?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:24:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1717191f-33ef-4f0a-b29b-7fb0010d7732</guid><dc:creator>Stephen Kane</dc:creator><description>&lt;p&gt;Thanks Mike, I would have used the placeholder or instructions option but in many cases our target user group has English as a third, fourth or fifth language.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94840?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:15:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e7807d5-1732-4d25-936c-4c85d904c9b9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Understood.&amp;nbsp; I think this would (also) be a perfect use case for things like the Instruction and/or Placeholder text.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1652105735594v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94839?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:11:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ace99864-53a1-496e-8b15-a26d5b535218</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;On what Marcel suggested, if you try to insert a number having 2 commas or having a comma and a dot as separators then it&amp;#39;s not working properly. So that needs some improvements on what number formats can be accepted. Also, because the component is a textField, it can accept letters also and not only numbers. So you have to&amp;nbsp;use the cleanwith() function to allow only numbers, periods, and comma characters to be inserted.&lt;/p&gt;
&lt;p&gt;Also, an OOT, are you suggesting your answer as a correct answer to your own question? That&amp;#39;s bizarre man&amp;nbsp;LOL&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94836?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:07:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b878eef-03b7-43a3-a9c3-bb87705d9880</guid><dc:creator>Stephen Kane</dc:creator><description>&lt;p&gt;Thanks, Mike&lt;/p&gt;
&lt;p&gt;Unfortunately it&amp;#39;s not that simple in my case - I am in South Africa and there is a lot of confusion around the correct separator use - see below from limn.co.za:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Technically speaking, the official format for numbers in South Africa is spaces for the thousands separator and&amp;nbsp;&lt;/span&gt;&lt;b&gt;a comma&lt;/b&gt;&lt;span&gt;&amp;nbsp;for the decimal mark. The American variation that we had become used to is commas for the thousands separator and a full stop for the decimal point.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;confusion reigns as a result....&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94833?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:01:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:367dd80b-01fe-41af-a1ce-49335d309261</guid><dc:creator>Stephen Kane</dc:creator><description>&lt;p&gt;Hi, Marcel&lt;/p&gt;
&lt;p&gt;HALLELUJAH!&lt;/p&gt;
&lt;p&gt;Thank you very much, that does the job.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The Appian standard I am referring to comes from the usage considerations section on this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/Floating_Point_Component.html"&gt;https://docs.appian.com/suite/help/22.1/Floating_Point_Component.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which refers to using a text field to apply special formatting such as currency.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94832?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 14:00:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd4da981-db12-4725-9d95-2a00b686df49</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Out of curisoity, have you verified this behavior with a user account whose Locale is set to one that would use the &amp;quot;comma separated decimal&amp;quot; convention?&amp;nbsp; Because I wonder whether you&amp;#39;re trying to re-invent the wheel here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace the "comma" character with the "period" character</title><link>https://community.appian.com/thread/94828?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:47:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e139c45-3010-433b-aa31-659555bfe120</guid><dc:creator>Marcel Paradies</dc:creator><description>&lt;p&gt;Something along these lines? Does the job but probably could use some tinkering.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!textField(
        label: &amp;quot;Your Decimal&amp;quot;,
        saveInto: a!save(target: ri!decimal, value: todecimal(replace(save!value,find(&amp;quot;,&amp;quot;,save!value),1,&amp;quot;.&amp;quot;))),
        value: ri!decimal,
      )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Out of interest, what Appian standard of using a text field instead of a decimal field are you referring to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>