What is the base form_id for Webform's forms to use in hook_form_BASE_FORM_ID_alter()?

My website will have lots of Webforms and I'm looking the proper way to alter this huge amount of forms.

1 Answer 1


the base form is webform_client_form and hook look like


or if using HOOK_form_alter we need statement as

if (strstr($form_id, 'webform_client_form_')) {
  //our code for all webforms

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.