Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field group in forms #180

Open
amsatique opened this issue Nov 21, 2023 · 1 comment
Open

Add field group in forms #180

amsatique opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@amsatique
Copy link

Hello,

We are building our service catalog deployment based on terraform provider.

We use option_type to manage our form input:

#VM Example 
resource "morpheus_text_option_type" "instance_name" {
  name                     = "instance-name"
  description              = "text area for instance name"
  labels                   = ["createVM", "Compute"]
  field_name               = "instance_name"
  field_label              = "Nom d'instance"
  default_value            = ""
}

resource "morpheus_textarea_option_type" "description" {
  name                     = "description"
  description              = "text area for description"
  labels                   = ["createVM", "Compute"]
  field_name               = "description"
  field_label              = "Description"
  default_value            = ""
}

We merge our options into workflows:

resource "morpheus_workflow_catalog_item" "create_vm_in_project" {
  name                 = "Create VM
  description          = "Allow you to create a VM"
  enabled              = true
  featured             = false
  context_type         = "appliance"       
  labels               = ["createVM", "compute"]
  workflow_id          = morpheus_operational_workflow.create_vm_in_project.id
  option_type_ids      = [
                          var.options_ids_1,
                          morpheus_text_option_type.instance_name.id,
                          morpheus_textarea_option_type.description.id,
                          morpheus_radio_list_option_type.env_typology.id]
}

With this method how can we add field groups into our terraform based forms ?

Regards,

@martezr
Copy link
Collaborator

martezr commented Nov 21, 2023

Fields groups were added as part of the form builder feature added in the 6.2 release of the Morpheus platform. Work has been begun on adding support for a morpheus_form resource that will include support for field groups along with adding a setting for catalog items to utilize a form.

@martezr martezr self-assigned this Nov 21, 2023
@martezr martezr added the enhancement New feature or request label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants