I was trying to export my app which had some cmmn and bpmn. The task inside the bpmn had some form referenced to it.
When exporting and restoring the app at a different place, I could not find the form being exported with the app.
I tried the solution given in Form reference and modeler export
using a bpmn with a single task and a form linked to it, but when trying to upload that app the form was still not visible in the form section.