SyntaxFix
Write A Post
Hire A Developer
Questions
Your code for setting value for hidden input is correct. Here is the example. Maybe you have some conditions in your if statements that are not allowing your scripts to execute.
if