sweetalert2 text input with validation of the text with javascript in R Shiny
问题 I am upgrading from sweetalert to sweetalert2 in R shiny and so far have managed to get the regular response by the R shiny server to ok/cancel buttons in the alert messages working, but now I am stuck with the next type, namely text input messages where I used to perform some validations for: empty use of special characters before sending the value to R. Here you can find an app in which sweetalert2 is implemented. in the new problem I'm trying to replace the javascript in that app with a