Setting a value to hidden element in clickdimensions is tricky beacuse you cant set an id to it and there are lots of hidden elements set by the page.
the way i did it was by setting a special value to that field and find it later when code runs.