Validation of user input #125
StefanMunnes
started this conversation in
Feature Requests
Replies: 2 comments
-
|
Cool, yes input validation is on our roadmap. I like the suggestion of adding a |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
FYI, this is an older discussion thread, but we now have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I think it would be helpful if one could define some checks for the input and give a note if it doesn't match the expectations. I saw there are some packages out there, but just tested shinyvalidate . I will stick to the important example of valid e-mail address input. For now, I was able to implement the following code in the APP.R server function:
This package offers much more helper functions (e.g. sv_equal or sv_between) and the error messages fit quite well in the output. I was wondering if you are interested in implementing this functionality in your code logic. I think there are two reasonable options.
or 2. add a new helper function similar to sd_skip_if() in the APP.R server function:
One additional point I wasn't able to solve with the shinyvalidate package, but what could be helpful in a new implementation, the comparison of the values from two inputs. For example, if you let the respondents input their email address twice:
or 2. version APP.R server function:
Beta Was this translation helpful? Give feedback.
All reactions