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:
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.
Here is my condition for Att_2:
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.
I feel like I’m missing something…. Help!
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.
@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.
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.