New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant submit new report when map JSON doesn't include popup configuration #299
Comments
@CTLocalGovTeam I've come across another issue that appears to be related to this one. please let me know if you'd like this as a separate github item. In cases where the map JSON does not contain popup information for a layer, there seems to be some issues getting the field formatting from the popup config, even once it is included in the map JSON. For example: Once this was done, there was still no entry on the TEXT field for stringFieldOption and the field in the reporter form was showing up, by default, as multi-line, even though the default in the popup is single line. After toggling this setting to multi-line, saving the map, and toggling it back to signle line, and saving the map, I can now see the setting in the JSON, but the app is still showing me a multi-line text box. In the map viewer, I am getting the correct single-line behavior. All of this content is currently on devext. I will send URLs to the service, map, and app via email. |
We are able to access the application link. In the first attempt, app link was showing text area in the geo form. As per the implementation, if In the given case, the format option However, we tried editing the fields Please confirm if we are not missing anything and both of us are on same page. If not we can discuss it over a call tomorrow. |
@CTLocalGovTeam I believe we are on the same page, and I'm hoping it's a small fix.... Could the logic be adjusted so that, instead of showing textarea when the value is anything other than textbox, the form shows textbox when the value is anything other than textarea? This way the app's geoform will mirror the popup logic, which is to show the single-line box, unless the popup is specifically configured to show the multi-line box. |
This is a small fix. It will be available in the upcoming code drop. |
Resolved following github tickets : • Esri#226 : add basemap widget • Esri#229 : add legend widget • Esri#265 : Option to configure which geocoders are used in search • Esri#299 : Cant submit new report when map JSON doesn't include popup configuration • Esri#301 : One map with multiple layers • Esri#311 : BUG-000106163 Using the Citizen Problem Reporter template in ArcGIS Online, if a custom geocoding service is used, and a point is clicked on the map, the address of the location does not get populated in the specified field.
verified |
repro steps:
publish a feature layer using ArcGIS Pro
(http://arcgis4localgov2.maps.arcgis.com/home/item.html?id=0b7f71728a5b461685bbc36b5b4b3b0e)
Add the layer to a map in AGOL, and save the map without editing the popup configuration
(http://arcgis4localgov2.maps.arcgis.com/home/item.html?id=8c46e5904e644c7fb604e9f5fda65053)
Share the map with a group, and use the group to create a reporter app
(http://arcgis4localgov2.maps.arcgis.com/home/item.html?id=1c0e6e47f02246fa96f8ca39c256c914)
Try to submit a new report. The submission form doesn't draw.
Open the JSON for the map and notice that it doesn't contain the popup configuration
(http://arcgis4localgov2.maps.arcgis.com/sharing/content/items/8c46e5904e644c7fb604e9f5fda65053/data?f=pjson)
This should not prevent the app from functioning. It should fall back to the layer JSON, as it appears Manager is doing.
The text was updated successfully, but these errors were encountered: