Giter VIP home page Giter VIP logo

Comments (7)

engram-design avatar engram-design commented on September 10, 2024 1

Ah, that's my mistake not removing them from the mapping of the contact object. Updated for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.1.26".

from formie.

engram-design avatar engram-design commented on September 10, 2024 1

Fixed in 2.1.27

from formie.

engram-design avatar engram-design commented on September 10, 2024

We already automatically include the pageUri but as for the pageName that's a little trickier.

It's not something we can map in the form integration settings without having it map to a Hidden field that you'd populate with the entry's title when rendering the form.

We could maybe scrape it from the referrer's meta title, but I'd rather not add that sort of overhead.

In Formie 3 for Craft 5, you'll be able to use PHP events in a module to add this sort of thing as context variables for the integration, to send along with the payload.

For now, I've added "Page Name" and "Page URI" to the mapping interface where you can handle all this through hidden fields, and populate them in your templates.

Updated for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.1.26".

from formie.

umkasanki avatar umkasanki commented on September 10, 2024

For now, I've added "Page Name" and "Page URI" to the mapping interface where you can handle all this through hidden fields, and populate them in your templates.

Excellent. Thank you very much!

from formie.

umkasanki avatar umkasanki commented on September 10, 2024

Hello @engram-design

Checked. Works.
But with this implementation the client gets the following warning in the HubSpot account.
This value wasn't passed to the Contact record. 'pagename' isn't a Contact property.

изображение

Looks a bit dirty.
Maybe there is another, more beautiful way to pass the form page title to the context?

from formie.

umkasanki avatar umkasanki commented on September 10, 2024

I still get this warning((.

HubSpot submission:
изображение

Form mapping:
изображение

Update is installed:
изображение

from formie.

engram-design avatar engram-design commented on September 10, 2024

Should have double-checked that, sorry. Updated for the next release. To get this early, run composer require verbb/formie:"dev-craft-4 as 2.1.26".

from formie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.