Webform

Using Drupal 7, I needed to programattically add a useragent field (webform calls these components) and a url field to my webform nid 7477.  The url field is a hidden field of type: Hidden element (less secure, changeable via JavaScript.)  If you leave off the extra array in the url definition, it will be the normal hidden type.  You can see this when you click the edit button for this component.  I hope someone finds this useful.

Subscribe to Webform