else If statement not working on shinyapps.io

We don't really have enough info to help you out. Could you post the content of your logs and ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

Please have a look at this guide, to see how to create one for a shiny app