Passing a variable to the USP
-
Hi Jeff
We love this plugin. It does exactly what we’d been hoping for, but for one small detail.
I am not much of a programmer (but I play one on Twitter). I am also new to WordPress. What we want to do is:
1) insert a variable into the USP form’s hidden field; specifically, the originating page’s ID (or name, but ID shorter) where the form was spawned via the [shortcode].
2) On submit, that variable would be prepended to the “Post Name” field so our form recipients have a precise page ID reference for the submission.
I assume this is fairly simple, but it’s above my pay grade. I can edit php templates like a demon, tho 🙂 (we’re a nonprofit, but can find a coder to implement it, probalby). If you can tell us basically how to achieve this, I’d be eternally grateful.
Matt
PS It’s entirely possible this obvious need is already achievable with your current tool. Please note: we can’t use categories, even if we solved the output to post name issue, because we’ll have one form for every post on the site. And that’s a fairly high number. You might consider our prepending idea as a standard feature, btw. We can’t be the only people who want to ID the submission.
The topic ‘Passing a variable to the USP’ is closed to new replies.