vueform / builder

Drag and Drop Form Builder for Vueform
https://builder.vueform.com
Other
245 stars 29 forks source link

AI generates field excluded from elements in builder configuration #70

Closed TakumiHendricksDev closed 1 month ago

TakumiHendricksDev commented 2 months ago

Environment

Framework "vite": "^5.2.10", "vue": "^3.4.25", Package Manager npm Vueform and Builder versions "builder":"1.4.6" "vueform":"1.10.1"

Reproduction

https://stackblitz.com/edit/github-np1o7c?file=builder.config.js

  1. All I have done is set AI as true and added some general elements to allow.
  2. Now attempt to use the AI tool and for instance write "Generate an Event Registration Form"
  3. From my previous attempts, the AI will attempt to generate a form with a location/address field.
  4. We do not have that currently enabled yet the Form Builder AI will attempt to add that to the form.

Describe the bug

Currently with the AI assistant, when generating a form it will ignore your builder configuration (ie. location field is not enabled) and attempt to add that to the builder. This causes an issue with the builder.

Additional context

No response

Logs

Uncaught (in promise) TypeError: can't access property "maps", window.google is undefined
adamberecz commented 2 months ago

Please upgrade to 1.4.6—it should be fixed.