What I’m trying to do:
I built a form in the M3 Theme. I then built a new Form and made it a template and added navigation. Can I either copy or convert the existing form such that it will function as a “looks like HOME” form and support the menu bar etc? What I’ve tried and what’s not working:
Copying the UI version of the form. I was able to do that in the older theme - -but i cannot copy the UI . The form I want to copy is complex so it would be nice to copy or convert – but if not – I still have my picks and shovels.
Thank you Code Sample:
# this is a formatted code snippet.
# paste your code between ```
You just mentioned two forms. It probably doesn’t make any difference to the answer, but to avoid reader confusion, it will probably help to specify which of the two you’re speaking of.
I think you mean the default Form class that gets created when you choose “Standard Page” as the type of form to create.
That Form, created from a template, has a specific structure, which enables it to behave that way. In particular it contains “the menu bar etc”.
If you want your own Form to behave that way, it should have the same (or similar) structure, with the same upper-level components.
How it gets that way is up to you: copy-and-paste, create the components at run-time, some mix of the above. I would aim for the simplest approach that works.
It’s not clear which parts of which form you tried to copy, or how: via the IDE, or by copying parts of the Form’s .yaml file. Pasting the latter is extremely tricky, with one wrong move resulting in being unable to load the App in the IDE.
Thank you for offering help here. I wanted to convert a form built before I had created the template with navigation. That form will not load with template info like a new form created using “looks like home” in the form creation process.
I just rebuilt the form in the templated new form and all is good now.