mautic / mautic/mautic-wordpress

Possible to set Form Field from shortcode?

Open
#92 3 comments 0 reactions 1 assignee View on GitHub

@shulard is already working on this.

Since Jul 5, 2019.

question
Dominant language
PHP
Stars
136
Forks
56
PR merge metrics
No merged PRs in 30d

Description

I currently use the form shortcode to embed forms in WP pages. All good. However, I have a lot of product pages that all need effectively the same form on it, the only thing that varies is the product page it is on.

Ideally what I'd like is to be able to have a hidden field in the form that indicates product name. Then when I embed the form I could set that field in the shortcode. Then in the campaign behind the form I can check that field value and do the product specific different behaviours.

Is this possible? The alternative seems to be having one form per product page, which works but is a lot of duplication for each product.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.