You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had a need for input validation. I tried searching through these docs for validate and validation but found nothing. This Posit Community post and this stackoverflow post suggests that you need to do it yourself.
After implementing my own solution I came across shiny_validate which solves everything. I think it would be useful if the documentation could include a mention of it, maybe even as an entry in the "User interface"-sidebar?
The text was updated successfully, but these errors were encountered:
Thanks for the comment! Gordon is the one who implemented shiny_validate, likely just after that community post.
It's hard to envision creating a new section in the sidebar for input validation, but maybe we can find a place in those sections to add a callout.
I tried searching the docs and the word "validate" has a lot of hits. We actually do mention shiny_validate but you'd have to use "validate the form inputs" to get a direct hit. I think we could easily reword the sentences to include "input validation" – are there any other terms you looked for?
Yeah, I suggested the sidebar because I was not really sure which sections it would fit in. Right now it's a bit buried in the survey-template you reference. I think maybe the reason I did not discover it is that it drowns in search results for invalidating reactives:
My search process was something like this:
Google Search: shiny python input validation (links above)
Web Search in py-shiny-site: Validate or Validation (drowns in validation)
Github search in py-shiny: Validate or Validation (no hits)
Github search in py-shiny-site: Validate or Validation (discover survey template)
I recently had a need for input validation. I tried searching through these docs for
validate
andvalidation
but found nothing. This Posit Community post and this stackoverflow post suggests that you need to do it yourself.After implementing my own solution I came across shiny_validate which solves everything. I think it would be useful if the documentation could include a mention of it, maybe even as an entry in the "User interface"-sidebar?
The text was updated successfully, but these errors were encountered: