<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I make a conditional constraint? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878466#M29887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and it hasn't quite worked. The constraint is still applied when both bank1 and bank2 are empty.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454671_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;The above&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; be OK.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/454672_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;The above &lt;EM&gt;should&lt;/EM&gt; also be OK because MEN is no higher than bank2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2019 01:14:48 GMT</pubDate>
    <dc:creator>RogerFarmer1</dc:creator>
    <dc:date>2019-07-30T01:14:48Z</dc:date>
    <item>
      <title>Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878462#M29883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I make a conditional constraint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a required field to record M.E.N. Resistance in Ohms.&lt;/P&gt;&lt;P&gt;I also have another two optional fields for Bank1 resistance and Bank2 resistance (Ohms).&lt;/P&gt;&lt;P&gt;Condition is M.E.N. cannot be greater than Bank1 or Bank2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Bank1 and/or Bank2 is empty, entering any value in M.E.N. will obviously be greater than Bank1 and/or Bank2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I put an IF statement in the Constraint column?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="454123" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454123_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 23:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878462#M29883</guid>
      <dc:creator>RogerFarmer1</dc:creator>
      <dc:date>2019-07-23T23:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878463#M29884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can use expressions (including if statements) in the constraint column. The same expressions that can be used in calculation column, required and read only columns, can also be used for constraints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means you can make your constraint conditional based on the answer to other questions in your survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 00:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878463#M29884</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-24T00:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878464#M29885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Phil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm showing my lack of programming skills, then, by asking how I would write an expression. So far I have come up with:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace; "&gt;if(${bank1} != NaN, .&amp;lt;= ${bank1}, if(${bank2} != NaN, .&amp;lt;= ${bank2}, ''))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which means: if bank1 is not 'not a number' then constrain to less than or equal to bank1, if bank2&amp;nbsp;&lt;SPAN&gt;is not 'not a number' then constrain to less than or equal to bank2, else do not constrain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bank1 and bank2 are decimal fields, as is the M.E.N. field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I on the right track? Probably not, because I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454267_pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because both bank1 and bank2 are NaN, any value in MEN should be acceptable. A condition should only be applied if either bank1 or bank2 have a number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roger.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 21:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878464#M29885</guid>
      <dc:creator>RogerFarmer1</dc:creator>
      <dc:date>2019-07-24T21:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878465#M29886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally had a quick look at your survey. Because you are wanting to use an "or" statement for blank1&amp;nbsp;or blank2, you can not use a nested if statement in the way you have constructed it, as once the first condition if&amp;nbsp;false, it will always&amp;nbsp;do&amp;nbsp;nothing and skip the second condition. Therefore you need to use a nested if statement with an "and" that covers all the combinations of inputs in blank1 "and" blank2 plus&amp;nbsp;I suggest you use string-length() instead of a NaN check. I tested the following in your survey and this works:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})&amp;gt;0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1} and .&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, if(string-length(${bank2})&amp;gt;0 and string-length(${bank1})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,''&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you want to put all on one line in your xlsx file it will look like:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})&amp;gt;0,.&amp;lt;=${bank1} and .&amp;lt;=${bank2}, if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})=0,.&amp;lt;=${bank1}, if(string-length(${bank2})&amp;gt;0 and string-length(${bank1})=0,.&amp;lt;=${bank2},'')))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will cover the case where the&amp;nbsp;there is null values in either blank1 or blank2 or both are null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 03:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878465#M29886</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-26T03:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878466#M29887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it and it hasn't quite worked. The constraint is still applied when both bank1 and bank2 are empty.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/454671_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;The above&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; be OK.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/454672_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;The above &lt;EM&gt;should&lt;/EM&gt; also be OK because MEN is no higher than bank2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 01:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878466#M29887</guid>
      <dc:creator>RogerFarmer1</dc:creator>
      <dc:date>2019-07-30T01:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878467#M29888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't cover all the cases you were expecting, it was intended to be an example expression so you could see how nested if statements work and try to adjust it yourself to get the result you were after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add an extra if statement at the start to check when both values are null, and ensure the value is 0 or greater for MEN, as you made this question required I assume it should always be a positive number. If not, and you expect negative numbers also, you may need to adjust this to work with any number. I have added this logic to the expression and tested it with Connect and App and it works:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(string-length(${bank1})=0 and string-length(${bank2})=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;gt;=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})&amp;gt;0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1} and .&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank2})&amp;gt;0 and string-length(${bank1})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,''&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your second screenshot above, this does not make sense when compared with the message you display. The constraint message says that:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MEN cannot be greater than Bank 1 or Bank 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In your example, Blank1 is "1", Blank2 is "1.1" and the MEN value is "1.1". This will cause the constraint to be true, as 1.1 is greater than 1. This occurs because we used an "and" statement in the expression were both Blank1 and Blank2 had values. If you want it to be an either or constraint, you then need to use an "or" statement. However for me, the constraint message is not clear in this case, as the way it reads would mean that MEN should not be greater than both the values, not just one or the other. In that case use the following expression with an "or" in the second if statement:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(string-length(${bank1})=0 and string-length(${bank2})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;gt;=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})&amp;gt;0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1} or .&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank1})&amp;gt;0 and string-length(${bank2})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank1}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,if(string-length(${bank2})&amp;gt;0 and string-length(${bank1})=0&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,.&amp;lt;=${bank2}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,''&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;BR /&gt; )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way you could do the constraint checks would be to put the constraint messages on the Blank1 and Blank2 fields, that will simply things as you are not trying to validate two different values in the one field where either could be true and accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test out both the above examples, and you may need to adjust them, test for all cases of values, null, higher and lower values to ensure it works the way you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 04:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878467#M29888</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-30T04:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878468#M29889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help, it is greatly appreciated. The second expression you created worked with the 'or' in the second if statement. It does highlight the clarity needed in question labels, hints, messages and notes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 22:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878468#M29889</guid>
      <dc:creator>RogerFarmer1</dc:creator>
      <dc:date>2019-07-30T22:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878469#M29890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, glad it worked for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 01:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878469#M29890</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-07-31T01:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a conditional constraint?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878470#M29891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been a huge help!&amp;nbsp; I was just wondering if it is possible to extend this into the constraint message?&amp;nbsp; I basically have a binary condition for the constraint, if "true" constraint x and y apply, if "false" only constraint x applies. I tried to create a couple text columns one with a constraint message for the true condition another for false and third calculated message to create the display constraint message fort the selected condition. e.g. if(${postDate} = 'T', ${trueConstraintMsg}, ${falseConstraintMsg}) and then entered ${displayConstrainMsg} in the constrain_message column. Needless to say this didn't work, was wondering if there is another solution? Is the constraint_message column only able to take text and not a result from another question? If I can't make it happen through a constraint message I can just do it through a conditional note but it won't be a elegant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 21:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-i-make-a-conditional-constraint/m-p/878470#M29891</guid>
      <dc:creator>BrentKinal1</dc:creator>
      <dc:date>2020-07-02T21:06:53Z</dc:date>
    </item>
  </channel>
</rss>

