Auto update all form references when renaming forms

When updating a name of a form, example ReportIncident

It’s possible to have, lots and lots of import statements like…

from ..ReportIncident import ReportIncident

And of course, lots of function calls, or initialization code in the entire project like:

report_incident_form = ReportIncident()
        self.alert_dialog = alert(content=report_incident_form, title="Report Incident", large=True, buttons=[])

Now if I misspell something, or want to refactor the name, I have to go through, one by one, and update the imports, the function calls, etc…

I’d like the “Rename” feature that already exists in Anvil, to automagically do this for me

Thanks :slight_smile:

3 Likes