• Resolved osvalder

    (@osvalder)


    Hello, I am trying to post form to API using webhook and I ran into problem with repetitive tabbed fileds. I can see on page, that input fields have different names (text-400, text-400_tab-1, text-400_tab-2, …), but in API, the post value is just text-400 and I can’t see other.

    <div class="container">
      <div class="row">
        <div class="columns full cf7-sg-tabs">
          <ul class="cf7-sg-tabs-list">
            <li><a href="#cf7-sg-tab-1603101572897" class="cf7-sg-hidden">Repetitive</a></li>
          </ul>
          <div class="container cf7-sg-tabs-panel" id="cf7-sg-tab-1603101572897">
            <div class="row">
              <div class="columns full">
                <div class="field"><label>Field<em>*</em></label>[text* text-400]
                  <p class="info-tip"></p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="row">
        <div class="columns two offset-ten">
          <div class="field"><label></label>[submit]
            <p class="info-tip"></p>
          </div>
        </div>
      </div>
    </div>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    I am trying to post form to API using webhook

    I don’t understand what it is you are trying to do.

    but in API, the post value is just text-400 and I can’t see other.

    What API? Can you post your server code ?

    Thread Starter osvalder

    (@osvalder)

    I am developing an API controller for submitted forms (webhook). In wordpress, I am using plugin CF7 to Webhook, wich allows POST form after submit. You just define url of webhook and form will be sent to that url after submit

    For test needs, You can create your own test wh by simply open this site in webbrowser https://webhook.site/

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I am developing an API controller for submitted forms (webhook)

    lovely.

    I can see on page, that input fields have different names (text-400, text-400_tab-1, text-400_tab-2, …), but in API, the post value is just text-400 and I can’t see other.

    how are you accessing the submitted data?

    Please see the developers note on the GitHub Wiki page on data processing and validation.

    Thread Starter osvalder

    (@osvalder)

    how are you accessing the submitted data?

    I am using plugin CF7 to Webhook and it sends all inputs in JSON to webhook automatically after submit. I expected that I will receive a list of dynamically created fields like it is in documentation (below):

    <tab-field-name>  //the field in the first tab, 0 base.
    <tab-field-name>_tab-1  //the 2nd tab.
    <tab-field-name>_tab-2  //the 3rd tab, and so on

    But instead, I only receive <tab-field-name>

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I am using plugin CF7 to Webhook

    that still does not answer my question. Can you actually post your code?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Repetitive fields – submit to webhook’ is closed to new replies.