<?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>Editable grid</title><link>https://community.appian.com/discussions/f/user-interface/22354/editable-grid</link><description>Hi guys, 
 In editable grid i have two fields one is scheduled date and one is Assignee. 
 Condition: 
 Scheduled date is mandatory field if the user add any name in assignee field. 
 If there is no name in assignee field, the system should allow to continue</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Editable grid</title><link>https://community.appian.com/thread/87458?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 13:17:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96a7d79a-afdd-450a-b85e-4bb694d2d3d6</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;1.) I really recommend the &amp;quot;insert&amp;quot; functionality for inserting code in the community forum. I makes it way easier to read.&amp;nbsp;&lt;br /&gt;2.)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;required: if(
not(rule!AF_RULE_General_isBlank(ri!riskAssessmentData.assignee)),
true,
false
),

-&amp;gt; make it shorter:

	required: not(rule!AF_RULE_General_isBlank(ri!riskAssessmentData.assignee)),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3.) Your validation condition says: when your assignee is NOT NULL and&amp;nbsp; your scheduled day is NULL then show this message. But just in THAT case.&amp;nbsp;&lt;br /&gt;so you need to display your second scenario as well&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
	validations: {
			if(
				or(
				    and(
    					not(rule!AF_RULE_General_isBlank(ri!riskAssessmentData.assignee)),
    					rule!AF_RULE_General_isBlank(ri!riskAssessmentData.scheduledDate)
    				),
    				and(
    					rule!AF_RULE_General_isBlank(ri!riskAssessmentData.assignee)),
    					not(rule!AF_RULE_General_isBlank(ri!riskAssessmentData.scheduledDate))
    				)
    			),
				&amp;quot;The Scheduled date is mandatory if there is an assignee&amp;quot;,
				{}
				)

	}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>