Have you ever made some experimental changes to a published app in the builder, solemnly promising to yourself that you would not click Save… and then—oops—you clicked Save anyway? 🤦
Now a cold dread washes over you. Your published app—the one happily living its best life out in the world—is still working exactly as expected. But the version in the builder? A total disaster. Nothing makes sense anymore, and you have no idea where to even begin putting it back together.
Good news: All is not lost. No need to panic. You can still save the day.
Note: This is a last resort workaround and may return some unexpected results.
___
Here's an example of a published app. This app had two pages: Trails and Resources.
I deleted the Resources page and "accidently" hit Save. Now my app state has Unpublished changes.
Here’s how to revert the changes saved in the draft, to bring it back in sync with the published app:
Warning: follow the steps meticulously to avoid overwriting the published app with the draft app!
Known issues with this workaround:
- Some text styling, such as font size, may not be preserved.
___
Tip
Need to make changes to an app directly in the code? You can use the ArcGIS Assistant to modify the JSON for both the builder (draft) app and the published app. Make sure you apply your code changes to both the file under JSON Editor > Data, and the config.json file from the Resources tab for them to be reflected in both places!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.