mplodowski / formbuilder-plugin-public

https://octobercms.com/plugin/renatio-formbuilder
https://octobercms.com/plugin/renatio-formbuilder
2 stars 0 forks source link

The field type field is required #38

Closed sqwk closed 11 months ago

sqwk commented 1 year ago

On a fresh install / forced update the plugin fails to run seed_contact_form.php and seed_default_form.php. The reinstall / forced update fails with "The field type field is required".

The same happens when exporting two forms and reimporting them: See screenshot.

The same error message also appears when trying to add a form field to an existing form. The field cannot be saved.

{
    "#layout-flash-messages": "    <div data-control=\"flash-message\" class=\"oc-hide\" data-type=\"error\" data-interval=\"5\">The Field type field is required.<\/div>\n",
    "X_OCTOBER_ERROR_FIELDS": {
        "field_type": [
            "The Field type field is required."
        ]
    }
}

Note that the plugin has worked fine initially and started doing this after a reinstall to try to fix another problem. I ran php artisan plugin:refresh Renatio.FormBuilder and forced an update through the October panel. Redoing this a couple of times eventually leads to a point where everything works again, so I assume that this is some kind of race condition or a caching issue.

Screenshot 2023-09-08 at 09 49 14

October v3.4.16

Plugin v3.1.3

mplodowski commented 11 months ago

Should be fixed in v4.0