mautic / mautic/mautic-wordpress
Possible to set Form Field from shortcode?
@shulard is already working on this.
Since Jul 5, 2019.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.