top of page
Forum Posts
Lukáš Bláha
Apr 26, 2018
In Coding with Velo
Hi, I want to hide two buttons on the page if there is an unregistered user on the page. Here is my code but it does not work for me. Where do I get a mistake? import wixUsers from 'wix-users';
let user;
let isloggedin;
$w.onReady( () => {
user = wixUsers.currentUser;
isloggedin = user.loggedin;
if (isloggedin) {
if (user.role === "Visitor") {
$w("#button1").hide;
$w("#button2").hide;
}
else{
$w("#button1").show;
$w("#button2").show;
}
}
});
0
4
111
Lukáš Bláha
Apr 25, 2018
In Coding with Velo
pls, what is wrong on this code? I want, when value in fieldname "termin" is empty then "Text42" show .... else when there is something value in "termin", it remains hidden $w.onReady(function () { $w("#repeater1").onItemReady( ($w, itemData, index) => {
let items = $w("#dataset1").getCurrentItem().termin;
if (items === "") {
$w("#text42").show();
} else {
$w("#text42").hide();
}
});
1
11
4k
Lukáš Bláha
Apr 23, 2018
In Coding with Velo
Hi, i need code for button - so that this button can only be viewed by the author of the matter on a dynamic page, can anyone please show me the code?
0
2
60
Lukáš Bláha
Apr 23, 2018
In Coding with Velo
hello, I want to create an update page where registered users could edit the thing they created using the form. I have a NEW PAGE page where a registered user uses a form to create a thing that appears in the ITEM dynamic page. I also made a copy of the NEW PAGE - UPDATE page, where the user can edit their stuff on the ITEM page by updating the button. On the UPDATE page, I've set the dataset read-write and set the page as a one-item collections. The update button on the ITEM page links to the UPDATE dynamic page. The only problem is that when I click on a dynamic ITEM page for anything and a dynamic UPDATE page, I always see the same thing .. Do not you know how I want to continue to change ITEMS on the dynamic UPDATE page?
0
1
62
Lukáš Bláha
Apr 09, 2018
In Coding with Velo
Hi, how can I link the map to my database so that a different map always appears on a dynamic page?
0
14
4k
Lukáš Bláha
More actions
bottom of page