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

Edit Contentlet: Research dynamic forms (component loader) #26080

Closed
Tracked by #25445
fmontes opened this issue Sep 13, 2023 · 1 comment
Closed
Tracked by #25445

Edit Contentlet: Research dynamic forms (component loader) #26080

fmontes opened this issue Sep 13, 2023 · 1 comment

Comments

@fmontes
Copy link
Member

fmontes commented Sep 13, 2023

Parent Issue

#25445

Task

We need to understand how we can render angular forms from a JSON object response.

  1. Here is the JSON example response
  2. We need to generate 2 columns and two fields
  3. The fields have in common:
    • label
    • required
    • hint
  4. The text field has a validation regex in the property regexCheck
  5. The host field, is a dropdown that will get it options from an HTTP request mock the response like:
[
    {
        "identiter": "1",
        "name": "demo.dotcms.com"
    },
    {
      "identiter": "2",
      "name": "some.other.site.com"
  }
]
  1. We need or want to use Angular native reactive form approach as much as possible
  2. For the component use primeng textfield and dropdown

Proposed Objective

Core Features

Proposed Priority

Priority 3 - Average

Acceptance Criteria

No response

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

@fmontes fmontes moved this from New to Next 1-3 Sprints in dotCMS - Product Planning Sep 13, 2023
@fmontes fmontes changed the title Edit Contentlet: Research dynamic forms Edit Contentlet: Research dynamic forms (component loader) Sep 13, 2023
@fmontes fmontes moved this from Next 1-3 Sprints to In Progress in dotCMS - Product Planning Sep 13, 2023
@zJaaal
Copy link
Contributor

zJaaal commented Sep 15, 2023

Using component loader the code is kind of confusing and have a lot of layers of logic to just create one field. This approach can be hard to maintain if we need to add a lot of fields or make refactors in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants