verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
96 stars 72 forks source link

[Salesforce Integration] Bug with phone country code #2133

Closed umkasanki closed 1 week ago

umkasanki commented 2 weeks ago

Describe the bug

I have such setup of SalesForce integration:

изображение изображение изображение

Actual behavior

If user fill phone with country code all works as expected: изображение

Formie submission data: изображение

SF submission data: изображение

If the user fills a phone number without a country code, the SF submission will not include country data.: изображение

Formie submission data: изображение

Formie submission data: изображение

Expected behavior

Since we have country data obtained from the Country code field, there is no need to re-enter the code in the Phone Number field. Country data should be sent to the SF based on the data from the Country code field.

Could you fix it?

Steps to reproduce

  1. Update to Craft 5
  2. Try to submit the form with SF interest

Form settings

Craft CMS version

Craft Pro 5.4.9

Plugin version

dev-craft-5

Multi-site?

Yes

Additional context

No response

Romanavr commented 2 weeks ago

I think I have encountered the similar issue. Is it a bug or I'm doing something wrong?

engram-design commented 2 weeks ago

That's odd, refer to my testing:

Front-end image

Submission content image

Field Mapping (for Lead) image

Payload sent to Salesforce image

So looks like your submission data is all looking good, does the submission look correct in the control panel?

umkasanki commented 1 week ago

You are right. The problem was in my module.