Show button based off True Boolean Result?

I have attached images to hopefully make my issue easier to understand

  • The page I’m working on is called “Members(ID)” (just realized I didn’t show page names in the photos I provided below but it is a private dynamic member page)
  • I have a database, called “Members” with a boolean field “Full House System” (fieldkey = fullHouseSystem )
  • I have 2 buttons overlaying each other, 1 says “Join Now” and one says “Subscribed”
  • “Subscribed Button”(#button31) is hidden by default and “Join Now Button”(#button24) is showing by default.

How can I make the “Subscribed Button”(#button31) show from a true boolean result in the field fullHouseSystem?

-Thank you in advance and any help is very much appreciated!

  • If you need more information to assist me please feel free to ask and I will glady provide any information needed.

Also I would imagine there is a way to change the #button24 text from “Join Now” to “Subscribed” based off the boolean result in field fullHouseSystem (if true replace “Join Now” with “Subscribed” which may be easier to do.

Hello jordantaylor4456.
First you can hide all your buttons by default
If you are using dynamic pages you access current item by

  const itemObj = $w("#myDataset").getCurrentItem(); 

Then you need to check value of itemObj .fullHouseSystem. And show button that shows
Subscribed/Join now based on this value

$w('#joinBtn').show()

Hi, you can also use this

import wixUsers from ‘wix-users’;

$w.onReady( () => {
if (wixUsers.currentUser.loggedIn) {
$w(“#myButton”).hide();
}
else {
$w(“#myButton”).label = “My Message on button”;
$w(“#myButton”).show();
}
} );