damian_nz - 3 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?

Thanks

Answer

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

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