Disclaimer: I have very little experience with coding. As a self-taught graphic designer, I have only managed to create a simple page that helps me store common phrases I use frequently throughout the day. It was quite a challenge for me.
I am currently working on a project where users can input text into a field, which will then be applied to predefined URLs linked to buttons that direct them to specific pages. For a visual reference, please check out this image: https://i.sstatic.net/ZplRK.jpg
I have attempted to modify some scripts for similar functionalities, but unfortunately, I haven't had much success. (You can find these examples below before my modifications). I'm including them here to see if I am headed in the right direction at all. I anticipate running into issues with multiple functions eventually?
<script type="javascript">
function goToPage(var url = '')
{
var initial = "http://example.com";
var extension = "html";
window.location(initial+url+extension);
}
</script>
<form name="something" action="#">
Label <input type="text" name="url" value="" onchange="goToPage(this.value)">
</form>
<SCRIPT type="javascript">
function goToPage(var url = '')
{
var initial = "https://cms.example.com/client/viewcasedetails";
var extension = "";
window.location(initial+url+extension);
}
</SCRIPT>
<TITLE>Redirect 1</TITLE>
<BASE HREF="https://cms.example.com/client/viewcasedetails">
</HEAD>
<BODY>
<P>
<FORM name="jump" action="#">
CMS ID:
<INPUT type="text" name="url" value="" onSubmit="goToPage(this.value)">
<INPUT type="submit" value="GO">
This is my current progress. I am tired of manually typing out lengthy URLs all day at work and making mistakes half the time. I'm unsure whether the solution lies in Javascript, HTML, or CSS. I want to explore a do-it-yourself solution before considering hiring someone to develop it for me. However, I am also uncertain about how to go about hiring someone for such tasks, but that's a question for another time.
Thank you for any assistance provided, and I apologize for any seemingly naive questions.