<?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>Count of Characters in Paragraph field</title><link>https://community.appian.com/discussions/f/user-interface/20999/count-of-characters-in-paragraph-field</link><description>Hi All, 
 I have a Paragraph field in the grid, which i have limited to 500 char, but i want to show the count of characters below the paragraph, for that am using Instructions,still with no luck, 
 Can anyone please help me on this, 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81809?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 16:12:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7987b581-4c1f-465c-8f0a-683904562b24</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Until the upgrade, I can only suggest utilizing the validation parameters on both the paragraph fields and on the grid itself - this will show hover over on the paragraph field as well as line by line errors underneath the grid. Additionally, you could add a skinny column next to the paragraph field for a length display - but as the others have noted here, this is probably about the best you can do until you upgrade.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!data: {
    {field1: &amp;quot;&amp;quot;},
    {field1: &amp;quot;&amp;quot;}
  },
  local!maxLength: 500,
  a!gridLayout(
    label: &amp;quot;Grid&amp;quot;,
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Field 1&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Validation&amp;quot;)
    },
    rows: a!forEach(
      items: local!data,
      expression: a!gridRowLayout(
        id: fv!index,
        contents: {
          a!paragraphField(
            value: fv!item.field1,
            saveInto: local!data[fv!index].field1,
            required: true,
            validations: {
              if(
                len(local!data[fv!index].field1)&amp;gt;local!maxLength,
                concat(&amp;quot;Please enter less than &amp;quot;,local!maxLength,&amp;quot; characters.  Current length: &amp;quot;,len(local!data[fv!index].field1)),
                null
              )
            }
          ),
          a!richTextDisplayField(
            value: {
              a!richTextItem(
                text: concat(&amp;quot;Length &amp;quot;,len(fv!item.field1),&amp;quot;/&amp;quot;,local!maxLength),
                style: &amp;quot;EMPHASIS&amp;quot;,
                color: &amp;quot;SECONDARY&amp;quot;
              )
            }
          )
        }
      )
    ),
    validations: {
      reject(
        fn!isnull,
        a!forEach(
          items: local!data,
          expression: {
            if(
              len(fv!item.field1)&amp;gt;local!maxLength,
              concat(&amp;quot;Please enter less than &amp;quot;,local!maxLength,&amp;quot; characters in line &amp;quot;,fv!index,&amp;quot;.  Current length: &amp;quot;,len(fv!item.field1)),
              null
            )
          }
        )
      )
    },
    addRowLink: a!dynamicLink(
      label: &amp;quot;Add a Row&amp;quot;,
      saveInto: a!save(local!data,append(local!data,{field1: null}))
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/grid_5F00_length_5F00_validation2.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81806?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 15:34:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3efdad70-7f01-4264-919a-38ed56b3c810</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Ok then - this &lt;a href="https://docs.appian.com/suite/help/21.1/Appian_Release_Notes.html#built-in-character-limit-on-text-&amp;amp;-paragraph-fields"&gt;new feature was released in 21.1&lt;/a&gt;, so you&amp;#39;ll be able to enable this to show up inherently directly in the paragraph field as soon as you can upgrade.&amp;nbsp; Until then I&amp;#39;m not sure there&amp;#39;s all that much you can do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81803?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 14:57:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:998549f0-827d-4f89-87ca-c338306a996e</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;its an 20.4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81799?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 14:33:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:394d0314-d02b-4d9e-9e5f-c9f42a231e6c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Agreed with Stefan - what version of Appian are you on currently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81797?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 14:01:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8dfa9aaa-cb7d-42bf-b96a-c31a2128c48f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian 21.1 includes this OOTB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81794?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:54:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e82cd12-112b-4009-b2ac-f0ef9b2fd750</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Either you can give some additional field in the right side to show the count but that&amp;#39;s not at all recommended.&lt;/p&gt;
&lt;p&gt;Other thing you can try is give one text field on top or bottom in readOnly format just to display the length of paragraph you are currently working with...here you will need one extra local variable to store the length of the filed and that you will use as value in the text field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81793?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:25:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c0519dd-ee74-43c3-8a07-da6a3b655a1b</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Thank you Gaurav, is there any way i can achieve showing the count of characters&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81792?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 12:00:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78232e74-d0a5-4408-ab3c-155794fa9a84</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;For Grid you cannot show instruction&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Count of Characters in Paragraph field</title><link>https://community.appian.com/thread/81791?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 11:57:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25c4c215-275f-40c6-938c-c11b387298c8</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Sharing this sample code it will help you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!para, &lt;br /&gt; a!paragraphField(&lt;br /&gt; value: local!para,&lt;br /&gt; saveInto: {&lt;br /&gt; local!para, &lt;br /&gt; },&lt;br /&gt; height: &amp;quot;SHORT&amp;quot;,&lt;br /&gt; instructions: &amp;quot;Number of characters &amp;quot; &amp;amp; len(local!para) &amp;amp; &amp;quot;/500&amp;quot;,&lt;br /&gt; refreshAfter: &amp;quot;KEYPRESS&amp;quot;, &lt;br /&gt; validations: if(&lt;br /&gt; len(local!para) &amp;lt;= 500,&lt;br /&gt; &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;500 characters maximum.&amp;quot;&lt;br /&gt; )&lt;br /&gt;)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>