Field Maps, Smart Forms, Conditional Visibility, Groups and PopUps

543
4
02-25-2021 11:47 AM
BillHeigh
New Contributor III

Hi guys and gals,

 

I have a pole feature and I am configuring the Pop-Up for it. Some poles have communication cables attached to them. I have made attributes for these communication companies and have allowed for up to four different attachments on a single pole (fields Att_1 through Att_4).

 

First I made a group for showing the pole data as shown:

 

 

BillHeigh_0-1614282103546.jpeg

 

Then I have made a group for each potential communication attachment, anywhere from 0 to 4 attachments. I am trying to hide the groups if they are no attachments on the pole, or hide the Att_2 group if there is only one attachment, and hide Att_3 if there are only 2, and so on.

 

Most of the examples I can find deal with showing Conditional Visibility based on an earlier ‘question’ like from Survey123, however I am trying to hide the group based on existing attributes.

 

 

BillHeigh_1-1614282103550.jpeg

 

Here is my condition for Att_2:

 

BillHeigh_2-1614282103552.jpeg

 

So my first questions is which way the Boolean answer triggers hiding the Group. So if my Arcade expression evaluates to True, then does the Group show or hide? I’ve tried it both ways and neither one seems to work.

 

My second question is why the Groups don’t seem to work wither. The end users see a big long list of attributes just like they did in Collector.

 

 

BillHeigh_3-1614282103556.jpeg

 

 

I feel like I’m missing something…. Help!

 

Thanks, Bill~

0 Kudos
4 Replies
VHolubec
Esri Regular Contributor

@BillHeigh ,

the Group/Attribute show when the condition is True, so if in your case if this attribute is empty the the group appears.

Regarding the attribute - try this notation:  IsEmpty($feature.Att_2) - the attribute Att_2 on the feature.

Hope it helps.

Vladimir

0 Kudos
BillHeigh
New Contributor III

Hey @VHolubec ,

Thanks for your reply. I will try using the IIF function then.

Any comments on the Attributes showing up but not in Groups?

Thanks again, Bill~

 

0 Kudos
VHolubec
Esri Regular Contributor

@BillHeigh  don´t know exactly how the Smart Forms will be implemented to AGOL.

As far as I´ve able to test it, it works with edit widget in BETA Map Viewer. 

I am soryy, but I don´t know if smart forms settings will propagate to pop-up too - we will see on 30th March when it ´s going to go to live, but in current Beta I haven´t found a way. So, for now I would set-up pop-up manually.

Vladimir

0 Kudos
Ewout_de_Graaff
New Contributor III

It is possible to dive into the JSON of the webmap where every stetting is stored in the background. That’s how I manage this problem. The easiest way is trough the ArcGIS Online Assistant. You can’t make the non edit pop-up conditional, but you can order the fields there. 

It’s also possible to define what fields are editable in the edit multiple mode and make required fields conditional by arcade expressions as used with conditional visibility. This is not yet possible in Field Maps Online. 

GIS specialist bij Terra Nostra