I've followed different tutorials but I cannot seem to override a field on my webform via a function in template.php.
Theme is called: 'myTheme'
Id of the form is: 'webform_client_form_76'
Id of the input: 'edit-submitted-henkilotiedot-etunimi'
Name of the input: 'submitted[henkilotiedot][etunimi]'
The function I think should work:
function myTheme_webform_form_76 (&$vars) {
$vars['form']['submitted']['edit-submitted-henkilotiedot-etunimi']['#value'] = t('Name');
}
What is the correct format to override webform elements?