Text search in JSON schema form dropdown filters enum instead of enumName

  • Goal:
    Define a dropdown in a JSON schema form using an enum field. Enable the user to search the dropdown's options by typing text that matches the options the user sees.

  • Steps:
    Create a JSON schema form that includes an enum field with separate "enum" and "enumNames" lists. Then try searching for an enumName value.

  • Details:
    The following JSON snippet is from the definition of a form that is affected by this problem.

{
  "enumNames": [
    "ABC123",
    "BGV8372",
    "GHD2937",
    "QQR9824",
    "THB2831"
  ],
  "enum": [
    "trk_XzepghaEhEg6Qtfp9VjE89",
    "trk_DFiXEyRifJsmaLBizckvbd",
    "trk_KkgaTVNGKLAQM3WSYYjpSe",
    "trk_DVBtzaGj6X9CWV62ukFMLB",
    "trk_LvhLMwQaZ57Vk5NfTS2Dty"
  ],
  "title": "Truck Id"
}
  • Screenshots:
    These screenshots show how searching for "ABC" results in no matches but searching for the ID of the "ABC" entry, "trk_XzepghaEhEg6Qtfp9VjE89", results in matches.
    Screenshot 2024-12-05 at 1.57.43 PM

Screenshot 2024-12-05 at 1.57.57 PM

P.S.: Another user pointed out this issue a while back: Dropdown in JSONSchemaForm - #4 by cdedreuille

Also, I tried to work around this using oneOf instead of enum, but I got the same behavior.

Hi @cstimber,

Thanks for reaching out! It looks like we have a bug report for this in our backlog. I don't have an eta, but I will reach out if our team prioritizes this

1 Like