Im not a programmer, but would it be as simple as this?
If user signed in
$w(“#mybutton”).url (URL OPTION 1)
else
$w(“#mybutton”).url (URL OPTION 2)
am i along the right lines?
could i get some guidance?
Thanks!
Im not a programmer, but would it be as simple as this?
If user signed in
$w(“#mybutton”).url (URL OPTION 1)
else
$w(“#mybutton”).url (URL OPTION 2)
am i along the right lines?
could i get some guidance?
Thanks!
Sure - why not? Just set the .link property of the button like this:
let isLoggedIn = user.loggedIn;
if(isLoggedIn === true) {
$w("#mybutton").link = < url if logged in >
}
else {
$w("#mybutton").link = < url if not logged in >
}
Of course, if you’re not a programmer, you might find it challenging to get everything the way you want it. I would recommend you check out the Corvid Resources page which provides tutorials, examples, and articles to help you get the most out of Corvid.
Thank you, much appreciated!