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

Validation via a list #6

Open
KevCaz opened this issue Nov 6, 2020 · 2 comments
Open

Validation via a list #6

KevCaz opened this issue Nov 6, 2020 · 2 comments
Assignees

Comments

@KevCaz
Copy link
Member

KevCaz commented Nov 6, 2020

A forms object should accept a list of value as an optional input and in this case it should skip the interactive parts and return a vector of logical to know which filed are valid and which are not.

For unit testing this is a very important feature.

@KevCaz
Copy link
Member Author

KevCaz commented Nov 10, 2020

This is working for individual questions. Now the goal is to make it work for the entire form, i.e. that in the following case:

q1 <- fob_among("Fruits?", c("Apple", "Pear"), "fruit", confirm = TRUE)
q2 <- fob_yorn("Be or not to be", "shake")
myform <- q1 %+% q2

myform() should accept a list of two elements and valid the tow question properly.

@KevCaz
Copy link
Member Author

KevCaz commented Nov 11, 2020

Before closing this, direct validation should be possible for multi forms.

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