I’m looking to find a solution to my websites form design/function.
I have a form set up on a page. I have a text box on my home page with a button which is linked to the form page. What I want to achieve is when someone inputs details to the text box on the home page and presses submit, this data will show in the first text box of the form on the form page.
If someone navigates straight to the form page I want the form to be set up normally I.e, just show standard place holder text.
Hope this makes sense and any advice is much appreciate!
Ok, first remove the top onReady functions so only what I wrote is there. You only want one onReady function per site.
on Copy of Start Selling you don’t want #input15 (which I’m guessing is the input field where they write the message that will be forwarded), instead you want the name of the field where you want to put the transfered message.
Ok so I’ve removed the additional text. I’ve tried changing the input #'s but not having any luck.
The box where the customer starts typing and presses submit is input#15
The form field I want this answer to show in is input #4
Just one question following your help the other day. Is there a way the code can be programmed so that when the input search box is filled enter can be pressed to navigate to the ‘Start Selling’ page rather than having to press the submit button?
Hi Simen thanks for coming back to me again.
I’ve tried to add into the code but it doesn’t seem to want to play ball? I not sure if it makes any difference but I have a number of inputs and buttons now set up for the input box (a slideshow which rotates around different placeholder texts in the search box)
I guess I’ll just go over what the onReady function does. Basically, once the website has loaded all the elements the onReady function kicks in, and runs all the code that’s within it. In this case it activates the onClick function which is run when the buttons are clicked.
Can you be a bit more specific about what’s not working? Are the buttons not working (sending you to the right page/saving the data)? Is the data handled wrong when you go to copy-of-start-selling?