Skip to content

Conversation

@ssnukala
Copy link

Fixed bug - json_encode missing

Resolves #20

ssnukala and others added 3 commits January 10, 2025 23:00
Fixed bug - json_encode missing
Changed UF Form parameter name to validator instead of validators (deprecated)

Removed initialization of the plugin elements, and moved it to the modal.html.twig page.
{{ encore_entry_script_tags('widget.formGenerator') }}

<script>
// Initialize form generator here instead of the plugin file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the issue with the current way it's done?

@lcharette
Copy link
Owner

Also, what is the benefit of using JSON_PRETTY_PRINT? It will only make the json "prettier" to look in the console no ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validator variable not json_encoded in modal.html.twig

2 participants