0

I can't seem to make a custom field that allows multiple values work if more than one value is selected in Contact Form 7 via Form Processor. If one value is selected, everything works fine. If more than one value is selected, Form Processor fails and no contact is created.

This error is logged: Notice: Undefined index: title in Civi\FormProcessor\Type\OptionGroupType->getConfigurationSpecification() (line 40 of /var/www/html/sites/default/civicrm/extensions/form-processor/Civi/FormProcessor/Type/OptionGroupType.php).

Here is my contact form (it uses checkboxes). In Form Processor, I have a Custom Options input, with multiple selected and I have the same options set up there.

If I use Try out in Form Processor, it works fine, so I wonder if Form Processor is expecting the data in a different form than Contact Form 7 is sending it in.

2
  • Yes, it looks like Contact Form 7 is sending a list like "A, B, C" and the API wants an array like ["A","B","C"]
    – Lars SG
    Jan 30 at 21:45
  • Issue on the plugin: wordpress.org/support/topic/…
    – Lars SG
    Jan 30 at 21:53
0

Potentially you could also develop a new type of input in the Form Processor that deals with the comma separated list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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