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

EPIC: dynamic form option types #376

Open
2 of 7 tasks
alishaevn opened this issue Feb 9, 2024 · 0 comments
Open
2 of 7 tasks

EPIC: dynamic form option types #376

alishaevn opened this issue Feb 9, 2024 · 0 comments

Comments

@alishaevn
Copy link
Contributor

alishaevn commented Feb 9, 2024

Story

ref: https://assaydepot.slack.com/archives/C03FZDALABG/p1707497250962569
we need to account for the various types that are available as a dynamic form option so that the new request form renders properly. e.g.

"dynamic_forms": [
  {
    ...,
    "schema": {
      ...,
      "job_description": {
        "type": "array",
        "title": "15. Please include a job description for the role if available."
      }
    },
    "options": {
      "fields": {
        ...,
        "job_description": {
          "type": "upload", <<<
          "hideNone": true,
          "sort": false
        }
      },
    }
  }
]

right now, the configureDynamicFormSchema function assumes that the required and dependencies properties will be present on each schema field. they may not be however. currently, when they are not present, they throw an error. so far I've seen that happen when the type for a property is upload, e.g. options.job_description.type. it may need to be accounted for other types too however.

Acceptance Criteria

  • radio
  • checkbox
  • select
  • textarea
  • text
  • date
  • upload

Screenshots / Video

Testing Instructions and Sample Files

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant