Title: Forms: 3rd-Party Inject Results
Author: zaus
Published: <strong>19 maio, 2017</strong>
Last modified: 6 setembro, 2019

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://s.w.org/plugins/geopattern-icon/forms-3rd-party-inject-results.svg)

# Forms: 3rd-Party Inject Results

 Por [zaus](https://profiles.wordpress.org/zaus/)

[Baixar](https://downloads.wordpress.org/plugin/forms-3rd-party-inject-results.zip)

 * [Detalhes](https://br.wordpress.org/plugins/forms-3rd-party-inject-results/#description)
 * [Avaliações](https://br.wordpress.org/plugins/forms-3rd-party-inject-results/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/forms-3rd-party-inject-results/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/forms-3rd-party-inject-results/#developers)

 [Suporte](https://wordpress.org/support/plugin/forms-3rd-party-inject-results/)

## Descrição

Allows you to include results from a [Forms 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
submission by flattening the response and inserting it within the original contact
form submission.

## Instalação

 1. Unzip, upload plugin folder to your plugins directory (`/wp-content/plugins/`)
 2. Make sure [Forms 3rdparty Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
    is installed and settings have been saved at least once.
 3. Activate plugin
 4. In the newly available section “Inject Results” in the ‘3rdparty services’ admin,
    enter the flattened service response keys like `Response/Body/SomeKey`, one per
    line.
     a. If the response is JSON or XML it will scan the elements/keys according
    to the segments you’ve entered; in the above example it will look for `{ Response:{
    Body: { SomeKey: "foobar" } } }` and include “foobar” with the submission.
 5. Some contact form plugins only allow injecting/overwriting an existing field (e.
    g. Gravity Forms). In these cases you can provide an “alias” to overwrite with `
    Response/Body/SomeKey=the_alias`, where _the\_alias_ is the contact form field 
    to override.
     a. With Gravity Forms, fields should be overwritten using aliases
    like `input_X` where ‘X’ is the field’s id.

## Perguntas frequentes

  How does it add the response values?

If you have an endpoint [test-response.php](http://yoursite.com/plugins/forms-3rdparty-inject-results/test-response.php)
that will “echo” back your 3rdparty submission with keys altered to be prefixed 
with ‘req-‘, then if your submission was

    ```
    { name: { first: "FirstName", last: "LastName" }, email: "myemail@email.com", etc: "foobar" }
    ```

The response would be flattened and prefixed to

    ```
    { "req-name/first": "FirstName", "req-name/last": "LastName", "req-email": "myemail@email.com", "req-etc": "foobar" }
    ```

You would then inject `req-name/first` or `req-etc`.

  What are some XML/JSON examples?

_XML_

    ```
    [env:Envelope/env:Body/ns1:Response/ns1:Resultstatus] => foo
    [env:Envelope/env:Body/ns1:Response/ns1:Result] => bar
    [env:Envelope/env:Body/ns1:Response/ns1:Description] => baz
    ```

_JSON_

    ```
    [Body/Response/ResultStatus] => foo
    [Body/Response/Result] => bar
    [Body/Response/Description] => baz
    ```

Note that XML responses will include the namespace prefixes. You may then reference
them by the entire key shown above.

  It doesn’t work right…

Drop an issue at https://github.com/zaus/forms-3rdparty-inject-results

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“Forms: 3rd-Party Inject Results” é um programa de código aberto. As seguintes pessoas
contribuíram para este plugin.

Colaboradores

 *   [ zaus ](https://profiles.wordpress.org/zaus/)

[Traduzir o “Forms: 3rd-Party Inject Results” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/forms-3rd-party-inject-results)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/forms-3rd-party-inject-results/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/forms-3rd-party-inject-results/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/forms-3rd-party-inject-results/)
por [RSS](https://plugins.trac.wordpress.org/log/forms-3rd-party-inject-results/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 0.3

 * fix: inconsistent nested key delimiters, now expecting ‘/’
 * removed testing endpoint per WP Security request (see archives for example)

#### 0.2

 * confirmed with GF at least

#### 0.1

IT HAS BEGUN

## Meta

 *  Versão **0.3**
 *  Última atualização **7 anos atrás**
 *  Instalações ativas **Menos de 10**
 *  Versão do WordPress ** 3.0 ou superior **
 *  Testado até **5.2.29**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/forms-3rd-party-inject-results/)
 * Tags
 * [3rd-party service](https://br.wordpress.org/plugins/tags/3rd-party-service/)
   [contact form](https://br.wordpress.org/plugins/tags/contact-form/)[crm](https://br.wordpress.org/plugins/tags/crm/)
   [form](https://br.wordpress.org/plugins/tags/form/)[mapping](https://br.wordpress.org/plugins/tags/mapping/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/forms-3rd-party-inject-results/advanced/)

## Classificações

Ainda não foi enviada nenhuma avaliação.

[Sua avaliação](https://wordpress.org/support/plugin/forms-3rd-party-inject-results/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/forms-3rd-party-inject-results/reviews/)

## Colaboradores

 *   [ zaus ](https://profiles.wordpress.org/zaus/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/forms-3rd-party-inject-results/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](http://drzaus.com/donate)