AnsweredAssumed Answered

Does symbology derived from an Arcade expression not display in the Smart Editor widget templates?

Question asked by agebhart_johnsoncounty on Jun 26, 2020
Latest reply on Jun 30, 2020 by agebhart_johnsoncounty

Does the Smart Editor widget not inherit or display symbology derived from an Arcade expression in an AGOL map?

 

I have a WAB (Developer 2.13) app in which I'm using the Smart Editor to draw utility permit line features.  When I use my AGS feature service as its published, the symbology looks fine in the feature template section (see 'Utility Permits from Service' in first image below).  Said symbology is based on field called UtilityType. 

 

Since I published the service, the users want to only display line features where an additional Display field value = 'Yes'.  So, I've created an Arcade expression (provided at bottom) to only display each utility type when Display = Yes.  I then set the symbology in AGOL accordingly.  The problem is that symbology does NOT carry over to the feature template section in the Smart Editor widget (see 'Utility Permits').

 

For comparison, the symbology shows up just fine in the Layer List widget (second image).

 

Is this a limitation or is there something else I need to do? 

 

Screenshot of Smart Editor widget features templateLayer List widget displays symbology correctly

 

var utility = $feature["Utility_Type"]
var display = $feature.Display

 

if (display == 'Yes' && utility == 'Electric'){
    return "Electric"
}
else if (display == 'Yes' && utility == 'Gas'){
    return "Gas"
}
else if (display == 'Yes' && utility == 'Communication'){
    return "Communication  "
}
else if (display == 'Yes' && utility == 'Water'){
    return "Water"
}
else if (display == 'Yes' && utility == 'Drainage Tile'){
    return "Drainage Tile"
}
else {
    return "Not Displayed (No)"
}

Outcomes