Skip to content

Feature: Support for Dynamic Lists of Complex Objects in Survey Variables #3557

@phillipyosief

Description

@phillipyosief

Related to

Web-Frontend (what users interact with)

Impact

nice to have for enterprise usage

Missing Feature

I am missing a Repeater/Object List variable type in Surveys. Currently, users can only input flat key-value pairs. I would like to see a feature where admins can define a schema (e.g., a group of sub-fields like vlan_id, name, and state) and users can dynamically add multiple entries of this object using a "+" button.

Implementation

Admin Configuration (Definition) In the Survey editor, add a new type Object List. The admin defines a set of sub-fields (keys and types) that make up one object. For example:

  • vlan_id (Number)
  • vlan_name (String)
  • is_active (Boolean/Toggle)

User Interface (Input) In the task launch dialog, display a table-like view or a list of cards.
Provide a "+" button to append a new object.
Each row has an "X" or delete icon to remove it.

Fields should respect their defined types (e.g., dropdowns for select fields).

Backend / Payload The UI should aggregate these entries into a standard JSON array and pass it as an extra_vars variable. This allows Ansible to iterate over the list using a simple loop.

Design

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions