<?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>Restrict user to add &amp;quot;3rd&amp;quot; entry if capacity is 2</title><link>https://community.appian.com/discussions/f/user-interface/24140/restrict-user-to-add-3rd-entry-if-capacity-is-2</link><description>Hi, 
 
 I have 2 tables pen and animal table , when i am adding the animal i am assigning the pen to the animal and the pen name are coming from pen table, 
 i want to restrict user to add &amp;quot;3rd&amp;quot; animal if i have already set the capacity of pen to 2 animals</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Restrict user to add "3rd" entry if capacity is 2</title><link>https://community.appian.com/thread/93065?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 12:23:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a898cec0-ea84-4efb-a038-5df7844d5717</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;You&amp;#39;ll have to do an expression rule that queries the database (query entity or record type)&amp;nbsp;and checks the number of animals for a particular pen. You can then use that query in the validations attribute of the Pen name field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>