[Datetime FT] Initialise in modal
damian_nz - 7 months ago
Hey there, I am building a custom form in a modal using this guide (https://pyrocms.com/help/developer-tools/form-builders/defining-custom-ajax-forms-in-twig)
I cannot find any documentation anywhere that explains the necessary steps to initialise fields?
ryanthompson - 7 months ago
Fields should initialize themselves in core modals. Otherwise you will need to make sure and include this: https://github.com/anomalylabs/streams-platform/blob/1.3/resources/views/ajax.twig#L9-L15
I would pry use
asset_scripts but same thing (slightly less code).