shinyvalidate icon indicating copy to clipboard operation
shinyvalidate copied to clipboard

feature request for sv_gte() et Al.

Open doncqueurs opened this issue 3 years ago • 0 comments

I've got a use case for a validation where I need to compare two input$ values to validate the user input. In other words, I need to compare whether the end date of an event is after the start date. Unfortunately, without work arounds (like psolymos suggestion in https://community.rstudio.com/t/shinyvalidate-using-a-reactive-expression-witin-add-rule/114590) I am unable to do this.

In my view it would be great of there would be an option to put a value from another input on the rhs attribute of the sv_gte (and sv_gt, sv_lt and sv_lte) function. For example like the below:

iv$add_rule("end", sv_gt(input$start))

The expected result it simply that this rule would check whether the input$end is after the input$start.

doncqueurs avatar Oct 10 '22 09:10 doncqueurs