hide "add member" button on profile page
I want (desperately) to hide the "Add Member" button on the Profile page when the bundle max is reached. How would I do this?
Our bundles have 2 members maximum, and 95% of the bundles already have 2 members (and our membership changes slowly). Since are bundles are almost all full, the "Add Member" button is quite confusing for users.
-
Try adding the following to your global javascript.
<script>
if (top.location.pathname === '/Sys/Profile')
{
if ($("#FunctionalBlock1_ctl00_ctl00_groupAccountSummary_participantsCountLabel").text() == "2") {
$(".actionButtonContainer").hide();
}
}
</script>