I am working on a site in SharePoint that has an infopath form. I need to set the value of a few hidden fields on the form using javascript. So far it seems my efforts to use the formname.id.value = newvalue; doesn't work. Has anyone done this before? Do i have to use xpath or something?
The data i'm trying to populate the fields with is from a cookie.