[SOLVED][Drupal Webform] Webform does not add new form components

| | 1 min read

A lot of Drupal users have faced a situation where the Drupal Webform module does not add new form components. If you are facing the same scenario in your Drupal site then read on to find out the solution.

Here is the solution reported by a Drupal user.

  • Open the Webform module
  • Go to line no 323 in the function webform_components_form_submit
  • Replace the following on line 323
    elseif (isset($_POST['op']) && $_POST['op'] == t('Add')) {
  • with the following:
    elseif ( ( isset($_POST['op']) && $_POST['op'] == t('Add') ) || isset($_POST['add']) ) {

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.