-1

I have been working on a patch for https://www.drupal.org/project/hubspot for the 8.x version. In fact I found a ticket for this same error for the 7.x version (https://www.drupal.org/project/hubspot/issues/2579147

This occurs when the site has more than a few webforms. This module maps webform fields to fields on hubspot.

The problem is when I submit the form, it includes every field in the form which exceeds 1000 input variables, even when the value is --donotmap-- as you can see below:

enter image description here That is just a small section of values being sent. I think its sitting around 2000 vars being sent.

Trying to figure out a work around for this, but is it even possible to exclude any fields with the value of --donotmap-- from submitting? I'm pretty sure that is not possible, but that is all I can think of right now. Any ideas besides increasing the max_input_vars setting?

Note: "What is the maximum number of elements allowed in a form?" is related, but not a Duplicate. My question is how to exlude inputs from submitting, but I believe setting them to disabled will not submit them.

4
  • Possible duplicate of What is the maximum number of elements allowed in a form?
    – kenorb
    Jan 18, 2018 at 3:42
  • @kenorb yes, related. Duplicate no. My question was how to exlude inputs from submitting, but I believe setting them to disabled will not submit them
    – Ronnie
    Jan 18, 2018 at 5:02
  • I believe setting them to disabled will not submit them. Sounds right, what happened when you tried it?
    – Clive
    Jan 18, 2018 at 11:05
  • @clive when writing that answer, I hadn't tried it, but setting them to disabled did work. Unfortunately, it wont be a solution. I'll have to rewrite how all these fields are getting generated.
    – Ronnie
    Jan 18, 2018 at 19:09

1 Answer 1

0

As for a workaround, you can increase the value of max_input_vars variable in your PHP settings.

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.