<?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>How to disable addRowLink when rows count reach certain limit?</title><link>https://community.appian.com/discussions/f/general/37980/how-to-disable-addrowlink-when-rows-count-reach-certain-limit</link><description>I have a gridLayout, and I have an addRowLink where user can add row to the grid, I want to have a row counts limit like 10, when there are 10 rows, I want the link to be disabled and user can&amp;#39;t add more rows. 
 How can I disable an addRowLink</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to disable addRowLink when rows count reach certain limit?</title><link>https://community.appian.com/thread/142842?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 07:19:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:139c3625-947d-4d23-9685-d8b89805df98</guid><dc:creator>fxzrqjzztrmy</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable addRowLink when rows count reach certain limit?</title><link>https://community.appian.com/thread/142834?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 05:18:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:afc3e54d-7f8e-4d42-8d36-291ef8150d06</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="/members/jiayingc4832"&gt;fxzrqjzztrmy&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will not be able to disable the addRowLink. Instead you can hide it, if the length of your data reaches 10 with a simple if() condition. If you want to display the &amp;quot;add new row&amp;quot; text even when the limit is reached and you want to make it disabled, use a rich text display field below your grid and make use of it instead of the addRowLink parameter.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;addRowlink: if(
          length(local!myRows)&amp;gt;=10,
          {},
          a!dynamicLink(
            label: &amp;quot;Add New Row&amp;quot;,
            value:{},
            saveInto:{}
          )
        )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>