top of page

Forum Posts

bamuu[WIX]
Top Contributor
Top Contributor
Jun 22, 2023
In Coding with Velo
I have nothing changed in my codes, but since today it show error script... how? Before all worked fine i have nothing changed.
Question about error code content media
0
1
11
bamuu[WIX]
Top Contributor
Top Contributor
Dec 28, 2022
In Coding with Velo
I have write the code, my problem is when i hover in repeater 1 it dont filter it in repeater 2 and show it. I know the problem is with hover. Where i think is the problem i have make in "red text". Hope any can fix the code. Code: $w.onReady(() => { $w("#h5634567345").onItemReady(($item, itemData, index) => { const button = $item("#button8238"); button.onMouseIn(() => { const item = $w("#dataset1").getCurrentItem(); $w("#dataset2").setFilter(wixData.filter() .eq("title", item.title) ) .then(() => { console.log("Filter set successfully"); }) .catch((err) => { console.log(err); }); }); }); }); What i want: I have in repeater 1 on 10 items with button button8238. Now i hover on the item 3 in repeater 1 and it show only the item 3 in repeater 2. With that it give me the possibility that visitors dont need click on button and open new site, they can preview the item on hover.
0
4
25
bamuu[WIX]
Top Contributor
Top Contributor
May 28, 2021
In Coding with Velo
I have make my own ToDo List. The problem what i have is, that when i transfer from one to other collection (example: 3 -> 4) they move only the first repeater box (example: 1 -> 4) . But i want when i click transfer (example: 2 -> 4). Here the picture: Here the code: export function button3712_click(event) { let toInsert = $w("#dataset6").getCurrentItem(); //gets the current item wixData.insert("T1", toInsert) //inserts the item .then( (results) => { console.log("done adding item") } ) .catch( (err) => { let errorMsg = err; } ); } Hope any can help me with new code or edit this code.
Transfer Collection to other Collection content media
0
3
42
bamuu[WIX]
Top Contributor
Top Contributor
May 10, 2021
In Coding with Velo
I have set a google login which is on a lightbox. What code do I need to close the lightbox after a successful login from Google? And how do I transfer the received data from Google to the member list? Only code what i have is this in iFrame here: <!doctype html> <html> <head> <meta name="google-signin-client_id" content="CLIENT_ID.apps.googleusercontent.com"> <script> </script> </head> <body> <div id="my-signin2"></div> <script> function onSuccess(googleUser) { var profile = googleUser.getBasicProfile(); let userId = profile.getId(); let fullName = profile.getName(); let firstName = profile.getGivenName(); let lastName = profile.getFamilyName(); let userEmail = profile.getEmail(); let idToken = googleUser.getAuthResponse().id_token; window.parent.postMessage({userId: (userId), idToken: (idToken),fullName: (fullName), firstName: (firstName), lastName: (lastName),userEmail: (userEmail)}, "*"); //here we auto sign out the user as we have already posted their info to the page code, remove this part of the code if you want the user to remain signed into google on your page var auth2 = gapi.auth2.getAuthInstance(); auth2.signOut(); }//end of googleSignIn function onFailure(error) { console.log(error); } //custom google button function renderButton() { gapi.signin2.render('my-signin2', { 'scope': 'profile email', 'width': 240, 'height': 50, 'longtitle': true, 'theme': 'dark', 'onsuccess': onSuccess, 'onfailure': onFailure }); } </script> <script src="https://apis.google.com/js/platform.js?onload=renderButton" async defer></script> </body> </html> Can one give me the code, unfortunately I do not know myself so well.
Google Login question content media
0
6
106
bamuu[WIX]
Top Contributor
Top Contributor
May 10, 2021
In Coding with Velo
Is it possible to create collection with a form (code) without always create from the editor or admin dashboard. Thanks!
0
1
42
bamuu[WIX]
Top Contributor
Top Contributor
Feb 15, 2021
In Coding with Velo
I need in this code Error message when the person write wrong value in input. Somthing like "show" box1 (box1 is error message). And i need that "let value = 111" not only numbers allowed. I want make with letter. This is code: export function button175_click(event) { let value = 111; let valueS = value.toString() if ($w("#input1").value === valueS) { wixWindow.openLightbox('Test'); } } Thanks for you help!!! :)
0
3
26
bamuu[WIX]
Top Contributor
Top Contributor
Feb 22, 2020
In Coding with Velo
Is it possible to set the lightbox exclusively for members who have a certain role. If so, an exact code would be very nice.
0
2
95

bamuu[WIX]

Top Contributor
+4
More actions
bottom of page