Twig how to assign a JS variable to PHP variable

QuestionsTwig how to assign a JS variable to PHP variable
sethbeckerman5 Staff asked 4 years ago

I'm having the same problem as this thread how to assign javascript variable value to php variable however I'm using twig.
I need to catch a value from JS and pass it to a PHP variable.
What have I tried without success:


View on Stack Overflow