Title: Post-buttonclick actions?
Last modified: September 1, 2016

---

# Post-buttonclick actions?

 *  [EdwardMartinIII](https://wordpress.org/support/users/edwardmartiniii/)
 * (@edwardmartiniii)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/post-buttonclick-actions/)
 * This has been kinda driving me nuts.
 * I have a target page that contains all kinds of content for each of my groups—
   segregated by shortcodes.
 * I have a profile page that lets users join or leave a group.
 * What I’m TRYING to make happen is that when a user makes a choice on the profile
   page, then they go right to the target page and their group choice drives how
   that appears.
 * My test code for that is:
 * `<div id="Elektu" onmouseup="setTimeout(function() {window.location = '../monster-
   goodies/';}, 1000);">test</div>`
 * When I click on the word “Test” I wait a second and then I bounce over there.
   All is as it should be.
 * But when I take this EXACT SAME DIV code and wrap it around these buttons:
 *     ```
       <div id="Elektu" onmouseup="setTimeout(function() {window.location = '../monster-goodies/';}, 1000);">
       <p>Note: you can only join one Creature Clan at a time. Your current Creature Clan is: [groups_member group="Ghost"]Ghost[/groups_member][groups_member group="Vampire"]Vampire[/groups_member][groups_member group="Werewolf"]Werewolf[/groups_member][groups_member group="Zombie"]Zombie[/groups_member][groups_non_member group="Ghost,Vampire,Werewolf,Zombie"]<em>unaffiliated with any Creature Clan</em>[/groups_non_member].</p>
       [groups_member group="Ghost"][groups_leave group="Ghost"][/groups_member][groups_member group="Vampire"][groups_leave group="Vampire"][/groups_member][groups_member group="Werewolf"][groups_leave group="Werewolf"][/groups_member][groups_member group="Zombie"][groups_leave group="Zombie"][/groups_member]
       [groups_non_member group="Ghost,Vampire,Werewolf,Zombie"][groups_join group="Ghost"][groups_join group="Vampire"][groups_join group="Werewolf"][groups_join group="Zombie"][/groups_non_member]
       </div>
       ```
   
 * …then that is not what happens. Clicking one of the Groups-generated buttons 
   keeps me on the same page, but modifies the look of one of the buttons, and doesn’t
   jump to the other page.
 * I don’t THINK I’m doing anything wrong, and the exact same DIV code works on 
   a single text word.
 * So…
 * …how can I achieve this? I’m honestly a little shocked the redirect breaks.
 * [https://wordpress.org/plugins/groups/](https://wordpress.org/plugins/groups/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/post-buttonclick-actions/#post-7486894)
 * Hi,
 * The buttons generated are actually input fields within a form, that’s why you
   see a different behavior I suppose.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Post-buttonclick actions?’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/post-buttonclick-actions/#post-7486894)
 * Status: not resolved