How can I post a form that contains a hidden value in the JSON? Similar to passing
<input type='hidden' name='someName' value='someValue'/>
How can I post a form that contains a hidden value in the JSON? Similar to passing
<input type='hidden' name='someName' value='someValue'/>
Sorry I put some HTML that didn’t come through. I was talking about passing the equivalent of < input type=hidden />
You can add any information to the hash of form values with the help of
setValues method.
//reset values
form.setValues({a:"b"});
//extend form values with new "name:value" pair
form.setValues({a:"b"}, true)
These values will be returned by form.getValues()
method.
Very good