Skip to content

Native Forms does not populate Fields plugin values when using "Fields" question type #1227

Description

@leeopereira

GLPI version

11.0.8

Fields plugin version

1.24.2

PHP version

PHP 8.3.6

Description

I'm using the new native Forms feature introduced in GLPI 11 together with the latest version of the Fields plugin.

I created a form that creates a Ticket as destination.

The form contains questions of type Fields (not standard text/dropdown questions). The destination configuration has "Bind additional fields to the destination" enabled.

The ticket is created successfully.

The additional fields container is correctly attached to the ticket, and the additional fields are displayed on the ticket page.

However, the values entered by the user are not copied into the additional fields.

Image Image Image Image

Instead:

  • The ticket is created successfully.
  • The additional fields container is attached.
  • The additional fields are visible.
  • All additional fields remain empty.

Expected behavior

The answers from Fields questions should populate the corresponding additional fields in the created ticket.

Current behavior

The ticket is created correctly, but all additional fields remain empty.

Steps to reproduce

  1. Install GLPI 11.0.8.
  2. Install the latest Fields plugin.
  3. Create an Additional Fields container for Tickets.
  4. Create two Fields (for example: Client and Environment).
  5. Create a native GLPI Form.
  6. Add questions of type Fields linked to those additional fields.
  7. Configure a Ticket destination.
  8. Enable "Bind additional fields to the destination".
  9. Submit the form.

Result:

  • Ticket is created.
  • Additional fields container is attached.
  • Additional fields stay empty.

Additional information

I also tested the fix mentioned in issue #1186.

The plugin already contains the flattenScalars() implementation from that issue, so it does not appear to be related.

From debugging, it seems that PluginFieldsDestinationField::applyConfiguratedValueToInputUsingAnswers() is not being executed during ticket creation, although the destination option is correctly displayed in the form configuration.

Could someone confirm whether this is a regression in the native Forms integration or if there is an additional configuration required?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions