Problem/Motivation

If AI Automators is enbled. When updating a content type, for example setting a field from required to not required, and the 'Enable AI Automator' checkbox is unchecked: then the form still tries to validate the field 'automator_search_index'

This field does not have a default value therefore triggers the front end validation and the javascript error:

'An invalid form control with name='automator_search_index' is not focusable.
​…​

​'

Steps to reproduce

  1. Enabled AI automators
  2. Edit an existing content type
  3. Manage fields
  4. Leave 'Enable AI Automator' unchecked
  5. Change a setting, eg. Required
  6. Save Changes

Proposed resolution

Set the field to '#required' => FALSE

Comments

jonnytoomey created an issue. See original summary.

prashant.c’s picture

@jonnytoomey

I could not replicate this issue. I believe there could be some custom javascript code or library that you might be using which is trying to find the element which is not visible on the page hence throwing this error in browser console.

marcus_johansson’s picture

This is fixed here for 1.1.x branch - #3514474: Vector Search view has a required value causing saving of field to fail. We could tag it so it is also backported to 1.0.0 if needed?

marcus_johansson’s picture

nvm - it is backported, there is just no new release for 1.0.x branch since.

jonnytoomey’s picture

Thank you @marcus_johansson

Working now with 1.1@RC

I'll close this issue now

jonnytoomey’s picture

Status: Needs work » Closed (duplicate)