[Datetime FT] Initialise in modal
Created 6 years ago by damian_nz

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?

Thanks

ryanthompson  —  6 years ago Best Answer

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_styles and asset_scripts but same thing (slightly less code).