I'm trying to wrap my head around some forms stuff here. I've built a custom module in which I can select a form. In the code of the module, I can easily display the form.
That will render the form on the page right at that point in the code. However, I'm trying to accomplish that this form is stored in a variable I can use at a later point in my code. Just like you would with text.
Is there a way to store this form with something like this?
However, we found another way and dismissed the option of adding a form to a custom module. But, still interested to learn if this is something that can be solved.