One thing I am looking to achieve is to retrieve an Id based on a folder number. Both the Id and folder number (which is unique) are located in the same controller.
I input the folder number from a text box and then need to direct the user to a /Id page.
My question is how should I approach this?
Do I create a method getIdFromFolderNumber() within my controller and then invoke this function in my JavaScript function? Or should I handle everything within a JavaScript function (I know I'll need a JS function as I plan to use AJAX for redirection and input value retrieval)?
I'm not looking for actual code here, just guidance on the approach I should take to understand how to do it. I've recently started work on a major project and, being a junior developer, I feel a bit overwhelmed.
Your assistance is greatly appreciated.