WordPress.org

Ready to get started?Download WordPress

Forums

Pardot
Custom field integration (feature request) (8 posts)

  1. jonmcpartland
    Member
    Posted 2 months ago #

    Re this topic, adding custom field integration into the generated iframe output would be greatly beneficial. Currently, there's no way to append a query string to the iframe src for custom field value injection.

    https://wordpress.org/plugins/pardot/

  2. Cliff Seal
    Member
    Plugin Author

    Posted 2 months ago #

    Hey Jon,

    I'm more than happy to review a pull request on GitHub. :)

  3. Cliff Seal
    Member
    Plugin Author

    Posted 2 months ago #

    A follow up thought here: with you obviously having the ability to code custom solutions, why not grab the embed code an inject it into the site with whatever string you want? You could append it to the_content, or build your own shortcode (i.e. [request-submissions-form]).

    I'm curious as to how adding this functionality to the main shortcode provides value to someone needing a solution like you mentioned in the Idea Forum.

  4. jonmcpartland
    Member
    Posted 2 months ago #

    I did think about implementing my own solution from scratch but, from the client's perspective, having the Pardot integration as it stands in the current plugin is much preferable to remembering a custom shortcode's syntax. By simply extending the base implementation offered by the plugin, I'm saving myself time and effort, as well as maintaining the client's user experience at no extra cost to them (from time spent by me).
    When I submitted the feature request, I did so under the assumption that there will be a decent number of Pardot clients running WordPress (hence the existence of the plugin in the first instance), and that many of them would like the ability to implement custom fields. I'll be surprised if I'm the first to require such functionality! :)

  5. Cliff Seal
    Member
    Plugin Author

    Posted 2 months ago #

    Oh, not at all, but that's why I asked. In most cases, it's just as easy to 'set it and forget it' with a specific form or two, especially considering our implementation in the plugin relies on our API, which returns a fully-formed iframe element.

    Anyway, that should be as easy as adding another shortcode attribute that accepts a query string (i.e. 'mycustomvar1=yes&mycustomvar2=no') and appending it to the src. That aligning with your approach?

  6. jonmcpartland
    Member
    Posted 2 months ago #

    We do have forms that are set-and-forget, too, but the majority do need the query string. Perhaps ask your API devs for an endpoint that returns just the URL of a form requested by ID? ;)

    That's pretty much what I've implemented currently, yes. My concern with that (and why I didn't submit a PR) is that I wasn't sure it was the most user-friendly way in which to allow the user to add custom fields. By that, I mean that not all Pardot users may understand what a query string is, or how to build one, which is why this plugin is likely very important to their workflow.
    I have been pondering whether allowing a comma/colon separated list of key/value pairs might be more beneficial to some users, using that to build the query string in the back end. In that case, users only have to worry about what their custom fields are called, and what values they wish to pass to each.
    What are your thoughts on that?

  7. Cliff Seal
    Member
    Plugin Author

    Posted 2 months ago #

    It may or may not be the most friendly way, but it is certainly consistent with what a user has to do currently to achieve the same result. Consistency with that supported method can be helpful, and I'd worry that changing the format (from query string to CS) would actually be more confusing.

  8. jonmcpartland
    Member
    Posted 2 months ago #

    Fair enough. I suppose that, as long as the functionality implemented is documented on the Pardot site's KB, users can figure it out.
    Thanks for looking into this.

Reply

You must log in to post.

About this Plugin

About this Topic