Removing multiple U2 tags from a form?

Options
This question isn't about deleting a U2 tag so much as rendering them useless. I know how to comment out and/or display:none, etc.


We run a campaign where members and non-members can vote on next year's calendar cover image. A co-worker set it up so that from a landing page the user would click, be taken to a donation form populated with the image they just clicked, and along with that would come a U2 tag specific to adding that user to a group. Problem is, the images and U2 tags are coded in on the form and essentially commented out, so each user is being added to all groups U2'd on the form. That's not what we intended.


Increasingly long story short, is there a way I can "show" the image/U2 only if a particular image was clicked on the landing page? I imagine so, but not savvy enough to figure it, I guess.


Here's the form in question from last year: http://support.bestfriends.org/site/Donation2?2974.donation=form1&df_id=2974&mfc_pref=T


Thanks in advance!!

J.D.
Tagged:

Comments

  • I have some ideas.


    How is the selection passed to the form? In the Querystring?


    Can you provide the html with s-tags for that dynamic content section with the image and U2 tags?


    BPM


    EDIT:


    So there are 3 U2 tags, which the dev tried to control by html comments. Those don't affect server tags, of course.


    U2 works like this: [[U2:groupID]]


    The first thing I would try is to have a single image and U2 tag and set it's value. So say we're passing the group id in the URL via query string like "group_id=12345". Name the images as "image_12345.jpg" and you can do something like this...

    <img src="../images/image_[[S334:group_id]].jpg" /><br /><br/>[[U2:[[S334:group_id]]]]


    I'm not sure if U2 allows the value to be dynamic like that.


    If not, then I would make three reusable pages(reus_12345_groupPage) each with a different U2 and image. Then load one of the three reusables dynamically. This way only one U2 tag appears.

    [[E51:reus_[[S334:group_id]]_groupPage]]


    This approach is basically what you have, but rather than commenting out sections you just stick each one in a reuable, and pick one of the set to load.


    BPM
  • I like where your head's at, Brian. I'll give this a shot.


    Thanks!
  • Well, shucks. I got the U2 tag to load properly, but now the images are not loading. Open to any ideas you may have.

    (PS - Not a developer, so very possibly doing something incorrectly in the coding.)


    Thanks for whatever tips you may have.

Categories