Select to view content in your preferred language

How do I create a rule that makes a field mandatory only if a specific domain value is selected in another field? ArcPro/Collector

1291
2
Jump to solution
06-23-2020 10:01 PM
CraigGadaloff
Emerging Contributor

I have a table with some fields which are required and some which are not. How do I make a field that isn't mandatory by default become mandatory based on the selected value of another field? I am using this in collector and if 'other' is selected then I need a second field which is a free text field to be required to be populated by the user.

0 Kudos
1 Solution

Accepted Solutions
ColinLawrence
Esri Regular Contributor

Craig,

This isnt currently possible in Collector. You may have seen the announcement for Field Maps. Within the first release later this year there will be included some smart form capabilities; this should include conditional logic such as the situation you describe. 

Currently, you can accomplish a similar workflow in Survey123.

Regards,

Colin

Regards,
Colin

View solution in original post

0 Kudos
2 Replies
ColinLawrence
Esri Regular Contributor

Craig,

This isnt currently possible in Collector. You may have seen the announcement for Field Maps. Within the first release later this year there will be included some smart form capabilities; this should include conditional logic such as the situation you describe. 

Currently, you can accomplish a similar workflow in Survey123.

Regards,

Colin

Regards,
Colin
0 Kudos
Scott_Harris
Esri Regular Contributor

Hey Craig,

In Pro you can create and use Attribute Rules. Your example sounds like a constraint attribute rule.

The expression could be something like this:

if ($feature.Field1 == other)
{
 If ($feature.Field2 != null)
 { return true; }
 else
 { return false; }
}
Else
{ return true; }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

-Scott