I have my webform submission (editing) opening from a link as a modal/dialog. The webform has a score_radios element and it has conditional states set for the element. When I open the modal, change the values, and click the submit button, I get an error in the WebformSubmissionForm::validateForm() function on line 1733 which says 'PluginNotFoundException: The "webform_score_radios" plugin does not exist.' The form does not save and the modal does not close as it is supposed to because the code breaks at the error.

CommentFileSizeAuthor
#2 3155194-2.patch3.67 KBwebflo

Comments

genellann created an issue. See original summary.

webflo’s picture

Status: Active » Needs review
StatusFileSize
new3.67 KB

I have the same problems with the last release. Here is a patch.

webflo’s picture

Version: 8.x-2.0-alpha1 » 8.x-2.x-dev
sharique’s picture

Status: Needs review » Reviewed & tested by the community

Patch applied and fixes the issue of add element form not opening.

nigelcunningham’s picture

Status: Reviewed & tested by the community » Fixed

Committed; thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

donpas’s picture

Priority: Normal » Major

This problem is still present. In a webform with a Quiz Select field type added, I get the following after running a test submission.

Drupal Version: 10.4.6
Webform: 6.2.9
Webform Score: 8.x-2.4

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "webform_score_select" plugin does not exist.

Drupal\Core\Plugin\DefaultPluginManager->getDefinition() (Line: 428)
Drupal\webform\Plugin\WebformElementBase->getFormElementClassDefinition() (Line: 370)
Drupal\webform\WebformSubmissionConditionsValidator->validateFormElement() (Line: 321)
Drupal\webform\WebformSubmissionConditionsValidator->validateFormRecursive() (Line: 322)
Drupal\webform\WebformSubmissionConditionsValidator->validateFormRecursive() (Line: 322)
Drupal\webform\WebformSubmissionConditionsValidator->validateFormRecursive() (Line: 304)
Drupal\webform\WebformSubmissionConditionsValidator->validateForm() (Line: 1884)
Drupal\webform\WebformSubmissionForm->validateForm()
call_user_func_array() (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers() (Line: 274)
Drupal\Core\Form\FormValidator->doValidateForm() (Line: 118)
Drupal\Core\Form\FormValidator->validateForm() (Line: 593)
Drupal\Core\Form\FormBuilder->processForm() (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 1250)
Drupal\webform\Entity\Webform->getSubmissionForm() (Line: 128)
Drupal\webform\Controller\WebformTestController->testForm()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)