Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Form capture checkbox also captures the false input fields

(0) ShareShare
ReportReport
Posted on by 532

Hi all

A customer uses drupal 7 and an custom subsription form with checkbox for newsletter subsription

When we use marketing form capture we do get the true value but also the false values of all other checkboxes.

I think it is the problem for the name field wich gets the value

Error message Code  Exception: An item with the same key has already been added.

I I think it is the problem for the name field wich gets the value and can be found in the checkbox code of Drupal 7:

<div class="form-item webform-component webform-component-checkboxes webform-component--enieuws">
<label class="element-invisible" for="edit-submitted-enieuws">E-nieuws </label>
<div id="edit-submitted-enieuws" class="form-checkboxes "><div class="form-item form-type-checkbox form-item-submitted-enieuws-enieuws">
<input class=" form-checkbox" type="checkbox" id="edit-submitted-enieuws-1" name="submitted[enieuws][enieuws]" value="enieuws" /> <label class="option" for="edit-submitted-enieuws-1">E-nieuws </label>

supmitted-name.jpg

Has someone also the same problem?

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Form capture checkbox also captures the false input fields

    Hi Mariette,

    It would be helpful if you could share more details of the problem.

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans