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

Adding conditional logic to forms #134

Open
breck7 opened this issue Sep 4, 2024 · 0 comments
Open

Adding conditional logic to forms #134

breck7 opened this issue Sep 4, 2024 · 0 comments

Comments

@breck7
Copy link
Owner

breck7 commented Sep 4, 2024

Branching can be done when defining your parsers. Should be a 1 liner. Perhaps we'll use the term "requiredIf" or "inScopeIf". Approach is collect a lot of data on forms in the wild and find the smallest change we can make to support most/all of them.

nameParser
 extends abstractIdParser
 description What is your name?

specialtyCell
 enum Frontend Backend

specialtyParser
 extends abstractEnumMeasureParser
 cells commandWord specialtyCell
 description What is your specialty?

frontendParser
 extends abstractUrlMeasureParser
 description What is your favorite JS frontend?
 requiredIf specialty = Frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant