On a dynamic product page. Customer picks a product - “Product_s001”. Clicks on Order Now button.
Goes to another page with a form, on the first user input value box, it needs to be autofilled with that specific product name which is - Product_s001.
Customer fills the whole form, and click submit, data is submitted to"SubmissionDatabaseCollection".
So in this case I can see which product the customer ordered.
Problem I am facing now is that on the next page, I dont know how to auto fill the data into the user input for submission.
You can save the data about the product in the session storage, more information about it here .
Then you can set the input from the storage, for example:
$w(#input1).value = session.getItem("data");
In order to submit the data you insert automatically you can use setFieldValue to set the relevant fields or you can write an insert function for the submit button click event.
Hello Thanks for the reply.
I am not very familiar with coding, if theres a step by step on how to do this, I would really appreciate it.
As I can only find explanations but not tutorials.
But if it’ll take too much time then its okay.