Answer the question
In order to leave comments, you need to log in
How to add a designation to the application form so that it is clear from which product the application came from?
Welcome all. Please tell me how to do such a thing: there are goods and there is a feedback form for ordering (there is no basket yet). The form is the same for all products. You need to receive by email the data from which product the order came from. I can catch the class name using javascript and pass it to input hidden, but I can’t figure out how to pass it to input hidden. I would be grateful for any hint. I am using Form Laravel Collective
Answer the question
In order to leave comments, you need to log in
Well, if it’s not possible to create a unique form for each product on the server side (although it’s hard for me to imagine how this can be the case with Laravel), you can simply stuff the current URI into the hidden with a Javascript (are they at least unique for each product?)
How exactly you can see how to do it here: http://jquery.page2page.ru/index.php5/Work_with_atr...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question