Skip to content

Conditional parameters #11275

Open
@stirby

Description

@stirby

Problem statement

Many customers frequently send in requests to extend the capability of coder_parameters in the UI. There are a few desired features:

  • Conditional Parameters
    • Allowing the selection of one parameter reveal or hide following parameters
    • An example use case would be selecting a team and showing their allowed resources
  • Multiple Parameter Selection
    • I.E. Using a radio to allow multiple selection for a single parameter
  • Dropdown Parameters
  • Parameters with more options

Proposal

Before we attempt to implement these features individually, @kylecarbs recommended we experiment with allowing users to express coder_parameters as code using JSONForms.

We would allow users to write their workspace parameters in the UI using JSONForms and render them using the React integration. In this scenario, the visual and functional flexibility of coder_parameter would both be dramatically improved.

Note that this is not an explicit feature request. Someone who is interested in tinkering with this can experiment and help decide whether or not it's a viable option.

Metadata

Metadata

Assignees

Labels

roadmaphttps://coder.com/roadmap. Only humans may set this.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions