Hey Dara, sorry but I’m having trouble when I edited the code and placed it on my site… error message:

so what I did is:
export function button1_click ( event ) {
if ( $w ( “#input1” ). value = (123456). toString ())
wixLocation . to ( “/123456” )
123456 in value is the employee number
123456 in location is the page name
another question though, the code says "button1_click(event) so meaning do I have to add like a submit button on the page and not just user input? LOL sorry…
so if I’ll be adding a submit button, I need to connect the user input and the button to a dataset?
THANK YOU SO MUCHHH!!!