Created
February 27, 2015 12:29
-
-
Save keeprock/078811395e1ac01dd7dd to your computer and use it in GitHub Desktop.
Adding placeholder for empty select box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'WEBFORM_ID') { | |
$form['submitted']['WEBFORM_FIELD_NAME']['#empty_option'] = 'TEXT'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment