• Resolved kaweb

    (@kaweb)


    My plugin version is 1.0.8.

    I’m mapping fields:

    Company-Name -> “CompanyName”
    Contact-Name -> “FirstName”
    Enquiry-Details -> “”

    When I check the logs, the submitted data is

    {
    “company-name”: “Example company”,
    “contact-name”: “Example name”,
    “enquiry-details”: “Example enquiry”
    }

    It looks like the keys are wrong. It should be using CompanyName and FirstName for those, not company-name & contact-name.

    It’s also submitting the enquiry data, but I didn’t enter any mapping data. Can it ignore any fields that don’t have a mapping?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Mayur Prajapati

    (@mayur8991)

    Hello @kaweb

    Only mapped fields will send to API
    Rest will be ignored

    Thanks

    Thread Starter kaweb

    (@kaweb)

    Hi Mayur,

    The unmapped fields are showing in the Submitted Data column in the logs, though. If they’re not sent, it’s confusing to show them in the logs.

    Do you also know why the submitted JSON is not using the mapped values I set for the keys?

    • This reply was modified 11 months, 4 weeks ago by kaweb.
    • This reply was modified 11 months, 4 weeks ago by kaweb.
    Plugin Contributor Mayur Prajapati

    (@mayur8991)

    Hello @kaweb

    submitted json is combination of your api key -> submitted value

    For Ex

    {
    mapping-key-full-name : submitted value,
    yourname : this is my name,
    lastname : this is my last name
    }

    in above example yourname is your api side map key and “this is my name” is submitted form value

    https://prnt.sc/f13CAbdBfJdZ

    Hope it help

    For more info please take a look on documentation menu in plugin

    Thread Starter kaweb

    (@kaweb)

    “FirstName” is the mapping I’ve given to the Contact-Name field, but the logs don’t use FirstName. In the log it says “contact-name”:”Joe”, so it’s not using the mapping I’ve given.

    I want the logs to say “FirstName”:”Joe” instead.

    Plugin Contributor Mayur Prajapati

    (@mayur8991)

    Hello @kaweb

    Logs will only display cf7 field and its value which is submitted by user
    Ex : CF7 Field name is [your-name]
    Then the log will display {“your-name”:”Mayur” }

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Field mapping keys’ is closed to new replies.