Add "true" values to next step

Add TRUE values to next step

Hi everyone!


We have this form submission from Webflow that we’d like to add as a Note in Close.

Doing that is easy, but the highlighted items in the output from Webflow are kinda tricky.

We’d like to add those values that are TRUE in value. For example in this screenshot, we’d like to add “New Pool Construction” and “Maintenance” to the Note in Close.

Of course the values will vary depending on lead’s submission, so we’re not sure if we need ot use Variables, or an Iterator to get those values in the next module.

We’d love some help!

Welcome to the Make community!

I’d love to help, but since your screenshot only shows labels, I need the raw values to proceed.

Please provide the output bundles of the above screenshot by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

3 Likes

Thanks @samliew!

Here’s the output bundle in Webflow:

[
    {
        "name": "Apply Form",
        "siteId": "65db6fae87da5e41e6c0a956",
        "data": {
            "Name": "Test new lead",
            "Email": "lead@mail.com",
            "Phone": "8885648319",
            "Website": "newtest.com",
            "Location": "New Hampshire testing location",
            "New Pool Construction": "true",
            "Remodels": "true",
            "Maintenance": "false"
        },
        "submittedAt": "2024-02-25T21:38:30.566Z",
        "id": "65dbb3560bca11cd036ca4ed",
        "formId": "65dbad19eaa277c5d302f7ba"
    }
]```

I’m guessing that you want to add the words “New Pool Construction” if the variable is true.

In that case, you can use the if function, something like this:

{{if(15.data.`New Pool Construction` = true; "New Pool Construction"; emptystring)}}

2 Likes