-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.json
1407 lines (1407 loc) · 207 KB
/
data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"id": "81a885d6-8f68-5bc0-bbbc-1c7b32e4b4e4",
"title": "Need a Little Help with Your Site? Hire a Corvid Web Developer",
"content": "Here at Wix we strive to support you with this community forum, API references, articles, videos and code examples. But sometimes you might need a little extra help to get your site exactly the way you want it. \nHire a developer from the Wix Arena, an online marketplace with top Corvid web developers from around the world. Submit your project details here, and we’ll find the right professional for you.",
"userEmail": "[email protected]",
"creationTime": 1542111235544,
"labels": ["Corvid", "Api"]
},
{
"id": "36043e94-6d21-5d2a-b1eb-f983996e3d79",
"title": "Wix Code Forum - Guidelines for posting a question",
"content": "Hi Wix Code community, me again :)\n\nOver the past few weeks, we've discussed ways to make forum questions more accurate, professional and easy to answer to. This is super important, as this helps us be an ever-growing community, where we help one another achieve any goal that comes to mind, regardless of their coding level.\n\nHere's what we came up with:\n\n- Be nice. We love the atmosphere, and we love seeing how much everyone enjoys helping one another. We firmly believe that we should safeguard this culture—this is our space and we should protect it. We have different skills and different challenges, so don't forget that each one of us was once a code baby :)\n- Do not repeat questions. Use the forum search. There's a great chance that someone has already solved the problem that you are facing. \n- Use meaningful titles. ‘How can I create a collapsing and expanding repeater?’ is a much better title than ‘Help please!’. This makes it easier for people to spot the posts that they can help with.\n- Use Hashtags. makes it #easy #to #follow #topics.\n- Multiple short posts are better than a long one. This allows other people to benefit from our posts after we're done with it. Keeping posts short makes it easy to find answers, and makes the post relevant for more people.\n- Keep questions focused and clear. This will make each question easier to solve, which makes it possible for more people to answer it.\n- Format the text in your question. Use Code blocks, bullets, etc. to make it easier to understand.\n- Refrain from posting a long code. Debugging code is difficult enough when it's a short one. Post only relevant part of code.\n- Provide as many details as possible. Share what you think is right, what you’ve tried to do, and what blocks you. Include any relevant screenshots, code, and URLs to make it easier for others to understand the problem.\n- Acknowledge our peers’ help by marking a 'Top Comment' for the best answer. This will also make it easier to spot the correct answer.\n\n\nLast but not least: WORK HARD, PLAY HARDER!. Have fun in the process ;)\n\n",
"userEmail": "[email protected]",
"creationTime": 1545880457898,
"labels": ["Corvid", "Guidelines"]
},
{
"id": "ab6fc754-0e01-5cfb-84b9-cf37c1c0cdb5",
"title": "Collapse/expand code affecting the page footer\n",
"content": "I have placed collapse/expand code onto one of my pages, but the footer now has a huge white space above it in the preview. Is there a way to fix this?",
"userEmail": "[email protected]",
"labels": ["Collapse", "Expand"],
"creationTime": 1517833093439
},
{
"id": "82150d9f-f12c-5545-8329-6eaa80cb9ebd",
"title": "How to Display Numbers with a Comma Separator",
"content": "Hey Guys, \n\nStruggling with understanding how to get my code to display commas. While I know its been attempted to be answered before my situation is a bit unique I think. \n\nIn my my database I have both text and numbers (different columns). The numbers are inputted as 0000.00, but displayed with a comma within the database. When I tried to use this code: \n \n$w.onReady(function () {\n\n $w(\"#dataset1\").onReady(() => {\n var number = Number($w(\"#table1\").text);\n $w(\"#totalDealValue\").text = number.toLocaleString();\n\n });\n\n});\n\nIt stated \"text does not exist for table1\" and \"totalDealValue is not a valid selector\"\n\nI'm not sure how to select a particular column within the dataset to display the information within the column with a comma. \n\nany help would be appreciated. Still learning to code!\n\nBest,\nGabe",
"userEmail": "[email protected]",
"creationTime": 1514870853599
},
{
"id": "b52ad1dc-937b-54c3-81e9-2d433dd96bf6",
"title": "setting up my login page profile",
"content": "Hi there!\n\nI just want to ask how to fix my problem regarding on my login page.\n\nI watched and followed a tutorial on how to make database and a login page, here's what I have done following the tutorial, I did not mean to say it is wrong but I think I lack of something that I cannot decode on myself and I have a hard time looking since I am not sure what it is.\n\nHere is what I did:\n\n* Database collection\n* A pagecontent where there is:\n\nFirst Name\nLast Name\nEmail\nUpload Profile\nAbout Me\n\nThis page is connected to my database which I did right\n\n* I made a dynamic page wherein it will show the content that I will write from the page content I mentioned above. If I will not write information on that page content, my dynamic page will be blank.\n\nAfter I created a database, a page and a dynamic page, I, then created the login/logout page using codes.\n\nMy concern is this, once I click on my profile, instead of going to my dynamic page, it should be on my page content. Once I put information on that page, then it will show my dynamic page.\nHow can I, or what should I do with that?\n\nThank you for the answers.\n",
"userEmail": "[email protected]",
"creationTime": 1523581514366,
"labels": ["Login", "Problem", "Tutorial"]
},
{
"id": "42c22972-8daa-5305-9885-659616df6e18",
"title": "Corvid App Developers Alpha?",
"content": "I could have sworn that I saw reference to a new system that was in alpha testing that would allow developers to add a module to their Corvid developers system that would let them save apps, pages and widgets to help move them between sites. Now, I can't find what I remember reading. Anyone know what I am referring to?",
"userEmail": "[email protected]",
"creationTime": 1533526556410
},
{
"id": "7091aeb2-cbf4-504f-8ce6-dee773212074",
"title": "View Count & Click Count",
"content": "Hey there,\n\nI have resorted to here, to see if someone can simply help me (it would be greatly appreciated if you could give me your help on this piece of code). I have been trying for a day now, with no luck to get this to work. \n\nI am building an advertising system, which displays adverts across my website. Mostly using repeaters - the ads are stores in an 'Adverts' database - where i can use tags to also control the placement. \n\nI need to be able to do the following:\n\nUpon an Advert being clicked within a repeater, update the Database item click count field which field key would be 'clicks'. \nUpon an Advert being viewed (scrolled over) update the Database item view count field which field key would be 'views'\nOR....update the 'view' count field based on a page being loaded with a repeater/repeater item being on it - if the above is more complex in some way.\n\nHope this makes sense and i would be really grateful for someone's help on this. Much appreciated.\n",
"userEmail": "[email protected]",
"creationTime": 1535681533617,
"labels": ["View Count"]
},
{
"id": "e35f54a8-8794-5d1e-915d-202138500e9b",
"title": "Bold numbers in automated text",
"content": "Hi, I have a site where when the user selects from multiple drop down menus they get a result. How can I make it so that the a and b values below are bolded?\n\nexport function text_a_b(a,b){\n var Amin = session.getItem(\"Amin\");\n var Bmax = session.getItem(\"Bmax\");\n $w(\"#resA\").text = \"If you enroll by October, you are estimated to pay between $\" + a + \" and $\" + b + \" per month\"; \n\n}",
"userEmail": "[email protected]",
"creationTime": 1543752057872
},
{
"id": "4a8e9c43-4acb-5e3b-b045-b5beb57f9e10",
"title": "Invoke a delete confirmation lightbox from another lightbox",
"content": "I have a lightbox that queries a collection and populates a table which is linked to a dataset. When a user selects a row in the table, I want to open a second lightbox \"Delete Verification\" asking the user to confirm deleting the item. The user selects either a Yes button or a No button which closes the \"Delete Verification\" lightbox and sets a data variable called \"confirmed\" to a value of either \"yes\" or \"no\". \nThen, the first lightbox checks this return value and if \"yes\" it calls the dataset1.remove function.\n\nThe problem is the \"Delete Verification\" lightbox does not open. Here is the pertinent code. Note: the \"Delete Verification\" lightbox is called from several pages and it works fine. It just doesn't open when called from this particular lightbox.\n\nexport function table1_rowSelect(event) {\n //delete the selected row\n let tableRowIndex = event.rowIndex;\n console.log(\"tableRowIndex = \" + tableRowIndex); // 2 if the third row selected\n \n //ask user to confirm before deleting the item\n $w(\"#dataset1\").setCurrentItemIndex(tableRowIndex) // sets the dataset rowIndex\n .then( () => {\n console.log(\"open the lightbox asking user to confirm deletion\");\n (wixWindow.lightbox.open(\"Delete Verification\")) //########## THIS LIGHTBOX DOES NOT OPEN #########\n .then( (data) => {\n let userAction = data.confirmed;\n console.log(\"userAction = \" + userAction);\n if (userAction === \"yes\") {\n $w(\"#dataset1\").remove();\n }\n })\n \n } );\n}\n\n",
"userEmail": "[email protected]",
"creationTime": 1543815282858
},
{
"id": "7181cec4-cf43-5936-a75b-c1d5f8a7e00e",
"title": "twilio resister otp not work",
"content": "\nhi \ni'm newbie/beginer to buid webside\ni want to use sms authentication mobile number\nfor newuser register\n\nnow fucntion don't work\n\nplese help me fix this\n\nthank you\n\n(sorry for english)\n\n\n\n\n\n \n\n\n",
"userEmail": "[email protected]",
"creationTime": 1528964107501
},
{
"id": "34cf1686-2c1c-54da-9d45-e64fa270422f",
"title": "Fetch BLOCKED by CORS??",
"content": "I'm experiencing the following error when trying to use my POST function from another Wix site.\n\nAccess to fetch at 'https://www.mitchwagnerdesign.com/_functions/csv' from origin 'https://www.bedminsterptg.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.\n\nPlease help me figure out why 'Access-Control-Allow-Origin': '*' is not covering this.\n\nhttp-function on https://www.mitchwagnerdesign.com\nexport function post_csv(request) {\n let options = {\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'Content-Type': 'application/json'\n }\n };return request.body.json()\n .then((body) => {\n body.expirationDate = new Date(new Date().getTime() + (24 * 60 * 60 * 1000))\n return wixData.insert(\"CSVExportData\", body, {\n \"suppressAuth\": true,\n \"suppressHooks\": false\n });\n })\n .then((results) => {\n options.body = {\n \"_id\": results._id,\n \"url\": \"https://www.mitchwagnerdesign.com/_functions/csv/\" + results._id,\n \"expiration\": results.expirationDate\n };\n console.log(\"RETURNING DATA\")\n console.log(options)\n return created(options);\n })\n // something went wrong\n .catch((error) => {\n options.body = {\n \"error\": error\n };\n return serverError(options);\n });\nCalling the Method from https://www.bedminsterptg.com\nfetch(\"https://www.mitchwagnerdesign.com/_functions/csv\", {\n method: \"post\",\n headers: {\n \"Content-Type\": \"text/plain\"\n },\n body: '*******PRIVATE*DATA*REDACTED********'\n })\n .then((httpResponse) => {\n console.log(\"REQUEST SENT\");\n if (httpResponse.ok) {\n return httpResponse.json();\n } else {\n $w(\"#buttonDownload\").enable();\n return Promise.reject(\"Fetch did not succeed\");\n }\n })\n .then((json) => {\n console.log(json);\n wixLocation.to(json.url);\n $w(\"#buttonDownload\").enable();\n })\n .catch((err) => {\n console.log(err)\n $w(\"#buttonDownload\").enable();\n });\n",
"userEmail": "[email protected]",
"creationTime": 1524338473695
},
{
"id": "a08ded46-92b0-52f5-bdd2-b7ccb700829b",
"title": "Multiple GetJSON without response",
"content": "Hello everyone,\n\nI'm trying to sync between a software and the wix database but I have a problem when I try to make several requests. \n\nHere is my code: https://www.codepile.net/pile/zAY0d4ao\n\nHere the input in console.log :\npage : 0 loading\npage : 0 loaded\npage : 1 loading\nWhy page 1 is not loaded ? \n\nThe url is correct, no error detected.\n\nAn idea of the problem ?\n\nThanks,\n\nYannik",
"userEmail": "[email protected]",
"creationTime": 1527845968004
},
{
"id": "820b51bc-1bcc-581a-88ae-f502e2cecd8b",
"title": "CONFIRMED BUG: Background video fails to load with errors 403 and CORS",
"content": " \nI can change with code page backgrounds with images but not with videos using $w(Document).background.src\nI'm talking about changing between stock Wix background videos in the Wix video manager, not external videos.\n\nSo with the API one can obtain the URLs for images and videos and they look like these:\nwix:image://v1/8034aa3291a54c489a7b7a3121d994f9.png/Bananas.png#originWidth=1177&originHeight=1200\n\nwix:video://v1/11062b_03c50f8fe4a34cc297a984e483a282ef/_#posterUri=/11062b_03c50f8fe4a34cc297a984e483a282eff000.jpg&posterWidth=1920&posterHeight=1080\n\nI store the URL in session storage and then reload the page.\nThen I can change the page background with this code inside the onReady():\n\n$w(\"Document\").background.src = \"wix:image:// ...\";\n\n$w(\"Document\").background.src = \"wix:video:// ...\";\n\n\nWorks for images, fails for videos.\nChrome just fails with this:\n\n \nThis lead me to believe that the URL for the video was bad.\nI spent too much time looking, testing and looking some more for an answer.\nFinally, using MS Edge, I got two different error messages that were helpful:\n\n \n and occasionally: \n \n Plugging one of the Wix video URLs into Chrome gives this 403 error: \n \nSo I have to conclude that Wix/Corvid is not allowing my Wix pages to access stock Wix videos in the Wix video manager - which should be an error on the Wix/Corvid end, not a feature.\n\nHere is a test page so you can see the error messages when requesting a change of video background:\n\n(use Chrome or MS Edge and look at console - FireFox has an error message that blocks the other messages)\nhttps://www.ualmatrix.com/clock-minimal-image \nAfter initial load click the \"Show URL\" button first so you can confirm the current video URL.Then select backgrounds from the \"Theme\" dropdown list.\nNote that the images work (page reloads and changes background image inside the onReady() ), and the videos have various failures:\nSometimes they fail with a 403 message and no backup image, and others show the backup image without an error message.\nOccasionally a CORS error pops up too.\nFull URL for Wix video background \"Ocean\"\nwix:video://v1/11062b_95d34f15761e4114a57b17823228948e/_#posterUri=11062b_95d34f15761e4114a57b17823228948ef000.jpg&posterWidth=1920&posterHeight=1080\n\nApparently, that gets converted internally by the Wix server to:\nhttps://video.wixstatic.com:443/11062b_95d34f15761e4114a57b17823228948e/1080p/mp4/file.mp4\n\nAnd since Wix thinks thinks my Wix page should not have access to that URL, it loads the poster instead (some files do and some don't):\n_#posterUri=11062b_95d34f15761e4114a57b17823228948ef000.jpg&posterWidth=1920&posterHeight=1080 \n\nTo summarize the dilemma:\nIf my Wix/Corvid pages can change stock Wix background images, then the same should also apply to stock Wix background videos. Instead, the video URLs are blocked, resulting in a 403/CORS error.\n\nSince videos are bandwidth intensive, I can see why Corvid would be careful with them, but it seems they went a bridge too far when a Wix/Corvid page cannot access Wix/Corvid stock videos.\n\nMaybe I'm overlooking something I can do on my end, but this looks very much like a problem on the Wix end of things.\n\nWix/Corvid has server settings that allow page background image changes in the onReady() part of pages. But, it prohibits page background videos to be changed the same way as the images.\n\nLooks like a Wix/Corvid system error to me (or a flawed policy), not a feature.\nSince this is a suspected bug, I sent it to tech support.\nThey told me to place the concern in the forums - the usual circular reference games.\n\nAny assistance with this matter is greatly appreciated. \n",
"userEmail": "[email protected]",
"creationTime": 1526445637085
},
{
"id": "6358ae3f-0eb4-5bea-aae2-dd358e0c3988",
"title": "Dynamic Header",
"content": "I was hoping that someone would know how to make a header resize once scrolling. \n \nThis would be the main header (at the top of the page). Once scrolling, the logo would switch to this:\n\n \nPlease ignore that the header buttons on the right side are different.\n\nCan anyone help me out?!\nJon",
"userEmail": "[email protected]",
"creationTime": 1545448296597
},
{
"id": "a9b525d4-0e89-5bae-a3dd-96dbad69f5d8",
"title": "Wix code not working in Safari?",
"content": "Can anyone tell me why Wix code is failing to work in Safari? Works great in Chrome and Firefox.\nIf they're writing a coding system (sort of closely related to javascript) why it should not work on all platforms?\nReally need this to work ASAP. Just launch a corporte site that worked last week but not now???",
"userEmail": "[email protected]",
"creationTime": 1526121084533
},
{
"id": "a20f3897-5d05-5853-9441-b006748969b1",
"title": "Debug wix code in Chrome Developer Tools",
"content": "Hi, \nI'm trying to put breakpoint in the code I wrote for a page and I'm following the instructions like this \"Loading the code for the YourPage page. To debug this code, open pqbzj.js in Developer Tools.\".\nUnfortunately is not clear where I could find this file. In the Sources tab I looked in all the nodes but I don't see the file. Could you please explain to me where can I find it? \n \n",
"userEmail": "[email protected]",
"creationTime": 1530408178692
},
{
"id": "a28963ee-6fc6-59be-a871-3cea2941deab",
"title": "Trigger Different Lightboxes According to Time of Day",
"content": "Hi,\n\nI would like to display a different lightbox according to the time of day a user is on the website. For example, I would like to display a breakfast special until 10:30 am, a lunch special from 10:30 to 1:30 pm, and an afternoon wine special from 1:30 to 4:00 pm.\n\nCan somebody outline a script I could modify for this purpose. I am brandnew to both Wix and Corvid.\n\nMany thanks.\n\nTed",
"userEmail": "[email protected]",
"creationTime": 1545177212164
},
{
"id": "0b981848-fced-5024-821d-87aefdc85be1",
"title": "build a personalized feed for each user",
"content": "Hi Corvid community, I'm trying on my site to allow members to follow each other. I followed the different posts on this forum, I managed to create a database that allows me to know who follows who. \n\nNow I would like to allow the site members to be able to follow the activities of the people they follow. For this purpose, I have a database with all the data from these members! \nBut I find myself stuck, I can't customize the repeater so that it only displays the activities of the people being monitored. I don't know how to connect all the databases to make a perfect feed for my users !\n\nI hope you can help me ! \nThank you in advance, and great job for the forum! \n\n",
"userEmail": "[email protected]",
"creationTime": 1542292889192
},
{
"id": "dea10b2a-6cd3-5aea-bcd0-5ba478753740",
"title": "Using InsertReference() for following functionality .weird error, field error?!",
"content": "okay so essentially I want to add my current user that is logged into a multi reference field of another user once they press a follow button on that users profile.\n\nSo if I want to follow your account, I am trying to use insertReference() to insert a reference of my profile item into the followers field in your item. \n\nHere's my current code.\n\n I iterate through each item in the repeater and set its individual components to build the individual users \"mini profile\"\n\nitemdata refers to the current item.\n\n$w(\"#repeater2\").forEachItem(($item, itemData, index) => {//repeating user\n \n let belt = itemData.belt;\n\n let a=\" | | | | \";\n if (itemData.stripe===\"0\"){ a=\"`````````\";}\n else if (itemData.stripe===\"1\"){a=\"`|```````\";}\n else if (itemData.stripe===\"2\"){a=\"`| |`````\";}\n else if (itemData.stripe===\"3\"){a=\"`| | |```\";}\n else if (itemData.stripe===\"4\"){a=\"`| | | |`\";}\n\nhere i'm setting their profile up. nothing special\n $item('#repeatedName').text=itemData.name;\n $item('#repeatedProfilePic').src=itemData.photoProfile;\n $item('#repeatedContainer').src=itemData.photoCover;\n $item('#repeatedBoxBelt').style.backgroundColor = session.getItem(belt);\n $item('#repeatedStripes').text = a;\n \n $item('#repeatedFollowButton').onClick((event)=>{\nwhen the button is pressed i call the following function which i have created and i pass in the current profiles itemData\n followUser(itemData);\n });\n });\n\n\nexport function followUser(itemData){\n //must add current user(logged in user) to selected users followers\n //inserts a reference to the item with ID of the current user in the followers field of the item in the USER_ProfileData collection with the ID of the selected user(the one the current user wants to follow).\n\n wixData.insertReference(\"USER_ProfileData\", \"followers\", itemData._id, wixUsers.currentUser.id)\n .then( () => {\n console.log(\">Reference inserted \");\n } )\n .catch( (error) => {\n\n console.log(error);\n } );\n}\n\nWhen I press the follow button I am getting the following printed to the console.\n\n Error: Provided relationshipAttribute [followers] is not a multi-reference field. \nThe field is in fact a multi reference field...\n\njust in case you want to look around. HERES THE LINK!\nwww.grapplehub.net\n\nTHIS PROBLEM HAS BEEN BUGGING ME FOR A LONG TIME!! ANY ADVICE IS VERY MUCH APPRECIATED!\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1538861834942
},
{
"id": "55d23494-5230-5213-a36d-5273ab4f3223",
"title": "Making a dynamic sum based on user ",
"content": "Hey guys, \n\nwell, this one might be complicated to explain. I have a members area where I use a dynamic page to display campaigns. Each time a person completes a campaign would get assigned a number of X points. These points are to be displayed in their account page.\n\nIn order of events: \n\n- A campaign is displayed\n- Participant completes the campaign\n- Points are assigned (based on the field containing the campaign points()\n- Points are added (from all completed campaigns) \n- Sum of points is displayed in the account page of the user. \n\nI'm completely lost on where to start building here. Please help!\n",
"userEmail": "[email protected]",
"creationTime": 1535726898499
},
{
"id": "ae280839-eef6-5761-ac6d-0e712b1e7d64",
"title": "Controlling repeater load",
"content": "Hi, How can i set my repeater to load each time 4 items when i scroll down? like in this web site:\n https://eduardo.nadlan-neto.net/he ",
"userEmail": "[email protected]",
"creationTime": 1515301356700
},
{
"id": "e469d55a-177b-5e12-b5a8-4daa485c5502",
"title": "Integrating wix' and the hotels' booking systems",
"content": "Hi all\n\nDoes anybody know whether it is possible to add a booking system, so that users can book different hotels from my wix website? \n\nHow do I intergrate wix' and the hotels' booking system?\n\nHope that you can help! \n\nThanks....",
"userEmail": "[email protected]",
"creationTime": 1539710180699
},
{
"id": "ee83ff74-cac2-598a-97c3-52ca22b6f5ab",
"title": "Link database to services\n",
"content": " \nHello!\nI'm looking for an orientation. If I'm not in the proper place feel comfortable to delete.\nI want to create a plataform or something in this way where I could connect a service to a visitor; acting between many professionals that will constantly update their content and possible clients (visitors until then), intermediating both.\nSo for that I was thinking in use a database linked to dynamic pages and offering a possibility to the visitor to hire that service in a automated way through the website.\nIs that a possible and good a ideia to do in the plataform? Do you suggest using Corvid for any function or the editor is enough? It should fit well in a member's area? Suggestions are very welcome. https://192168ll.onl/ https://xender.vip/ https://testmyspeed.onl/\nThanks in advance!",
"userEmail": "[email protected]",
"creationTime": 1518074759400
},
{
"id": "ed306501-3902-5e54-b645-2fc213695373",
"title": "How to code a button to redirect users to another page when clicked",
"content": "Hi, I am wondering how I would be able to code a button using the coding feature in corvid to redirect a user to another page on my website. I've looked around and have tried a lot of stuff to no avail. This is in attempt to find a solution to the issue where users are not redirected to another website page after submitting a payment forum, which I understand is a current issue being worked on. \n#code #button #easy ",
"userEmail": "[email protected]",
"creationTime": 1534757469383
},
{
"id": "bf2b4e4a-8194-5ee6-8536-5dba6e952dd0",
"title": "User button upload limited dimension and refresh",
"content": "Hi everyone,\nI am trying to write the code to limit the size of the image file that User can upload and refresh the photo after loaded. \nCan you please tell me where I'm wrong and what's missing? In fact doesn't works good and show me problem with \"size\"\n\nThanks in advance, as always\n\n\n \nexport function BBrochureUpload_change(event) { . //button to upload event\n let mySizeLimit = 2000; //Mb limited\n let files = $w(\"#BBrochureUpload\").value; //button to upload\n let fileSize = files[0].size;\n if (fileSize < mySizeLimit) {\n $w(\"#BBrochureUpload\").startUpload()\n .then((uploadedFile) => {\n $w(\"#image1\").expand(); // images show after upload\n })\n .catch((uploadError) => {\n console.log(`File upload error: ${uploadError.errorCode}`);\n });\n } else {\n $w(\"#image1\").collapse(); \n $w(\"#TLimited\").show(); // write \" Image to large to upload\"\n }\n",
"userEmail": "[email protected]",
"creationTime": 1524696676869
},
{
"id": "ae80d629-3339-582f-b80d-1a2003109f16",
"title": "Calling a module from job scheduler",
"content": "Hi\n\nI made a jobs scheduler and I need it to use a module (.jsw), not a .js because I want to send data threw Zapier once a day.\n\nis it possible?\n\n-----------------------------------\njobs.config:\n \n{\n \"jobs\": [\n {\n \"functionLocation\": \"/dailyReport.report\",\n \"description\": \"daily report\",\n \"executionConfig\": {\n \"time\": \"11:14\"\n }\n }\n ]\n}\n\ndailyReport.jsw:\n\n \nimport {usewebhook} from 'backend/useWebhook.jsw';\nimport wixData from 'wix-data';\n\n\nexport function report (){\n let data = {\"data\": \"something\"};\n let url = \"https://hooks.zapier.com/**********\";\n\n usewebhook (data, url);\n}\n",
"userEmail": "[email protected]",
"creationTime": 1529587395310
},
{
"id": "fb09f153-aafd-5e8a-8062-0a2a1a92772c",
"title": "https://healthcircle365.com/iron-core-edge/",
"content": " Iron Core Edge By no means snort at his makes an attempt to make you completely happy, don't shaggy dog story with male capabilities and sizes - this is essentially Iron Core Edge most painful situation for Iron Core Edge fundamental ideas of riskless sex. Who argues that his physiognomy at Iron Core Edge time of Iron Core Edge seek for that very cherished point or in an try to unbutton a bra explanations you to have probably Iron Core Edge most tender feelings? Don't make fun of your ex! It most effective appears that this passion should be flattered, but actually he will think that at some factor he'll also grow to be an “ex”, after which you're going to snigger at him in Iron Core Edge same method. And, oddly enough, you will have to not snigger immediately, even if you remembered whatever very humorous. It is not likely that you will prove Iron Core Edge MCH that didn't snigger at him, but for those who prove it, he will still be very offended! In any case, alternatively of having fun with what is going down, you believe of some thing wholly one of a kind. Probably Iron Core Edge most passionate fish there's a style of decorative fish, often called \"kissing gourami.\" At these voluptuous individuals Iron Core Edge kiss can last Iron Core Edge entire 25 minutes! Essentially Iron Core Edge most indecent library Iron Core Edge older new release could resent Iron Core Edge contents of Iron Core Edge shelves of bookstores, but they are unlikely to grasp that essentially Iron Core Edge most vast collection of books about intercourse is contained in Iron Core Edge Vatican library. Iron Core Edge gathering has 25,000 volumes. Iron Core Edge strangest bride in some parts of South India is still preserved custom prohibiting Iron Core Edge younger brother to marry earlier than Iron Core Edge older. For this reason Iron Core Edge tradition that deceives this tradition has been preserved: to solemnly mix Iron Core Edge wedding of an elder brother with a tree (or with Iron Core Edge spirit residing within Iron Core Edge tree). Probably Iron Core Edge most ridiculous contraception An absolute document holder in phrases of extravagant approaches of contraception may also be viewed Iron Core Edge Greek health care provider Soran. \n https://healthcircle365.com/iron-core-edge/ ",
"userEmail": "[email protected]",
"creationTime": 1545399819648
},
{
"id": "5ddec3bf-9409-514f-8538-0113498d3f57",
"title": "Cannot change Content-Type of the response from backend http function",
"content": " I have a http post function in the backend of my site and i would like it to return text/html as the Content-Type which i have set in the options. Although when I call the function the responses Content-Type is application/json.\n\nBelow you can see my code\n \nexport function post_acsexit(request) {\n\n let options = {\n \"headers\": {\n \"Content-Type\": \"text/html\",\n },\n \"body\": \"<html><body>tt</body></html>\"\n };\n \n return ok(options);\n}\n",
"userEmail": "[email protected]",
"creationTime": 1516143383861
},
{
"id": "6adf3f03-1560-5c18-87d8-261e1aff7e3c",
"title": "Is Corvid down for editors? ",
"content": "Is there an issue with Corvid at the moment, unable to call any databases or add new ones in the editor currently. \n\nThanks \nChris Silvester ",
"userEmail": "[email protected]",
"creationTime": 1538131141483
},
{
"id": "11d0c998-870c-5f0c-abb9-20b2e7f53d93",
"title": "Share website template through link ",
"content": "Hi all, sorry if this question is kinda basic but I was wondering if it’s possible to share my site template to another Wix user through my editor link?\n\nI’ve seen a few admins do this so I do know if it’s only exclusive to them\n\nSimply copy pasting my editor.wixsite.com/html/editor/{ID} to my desired account doesn’t work",
"userEmail": "[email protected]",
"creationTime": 1528600849750
},
{
"id": "2c9943e6-dc6a-5335-81fd-520b3774f68a",
"title": "Pause slideshow (Stop the loop)",
"content": "Hello. I'm trying to do what the OP was asking for on this thread:\nhttps://www.wix.com/corvid/forum/community-discussion/stop-this-slideshow\n\nUnlike him, I AM using the standard slideshow feature, and identical to him, would like the slideshow to stop after the 3rd slide and not continue to loop.\n\nI used the code suggested, and changed my id:\n$w.onReady(function () {\n $w(\"#heroslider\").onChange((event, $w) => {\n let currentIndex = event.target.currentIndex; // 3\n \n if(currentIndex === 3){\n $w(\"#heroslider\").pause();\n }\n });\n});\n\n\nHowever, the code is not working.\nSince the discussion on the previous thread continue to fix a Gallery issue, I'm re-starting this question to ask for help troubleshooting the slideshow issue. \n\nThank you!\n\n",
"userEmail": "[email protected]",
"creationTime": 1541961841343
},
{
"id": "04ab5c1c-b400-5977-8fd1-d41aacf3b22c",
"title": "Automatic custom payment return to the customer",
"content": " Adding a payment to access members area for online training. This will allow me to upload videos that are accessible for 24 hours for monthly challenges. Challenges last 28 days and Participants can register through paying £28 per challenge with a refund of £8 upon completion of the challenge, as long as the website records that participant taking part for the whole session for the full 28 days – this should activate a refund of the £8. Is it possible in Wix via code ??",
"userEmail": "[email protected]",
"creationTime": 1536536894459
},
{
"id": "1dc76c3b-00dd-5d28-9515-c730ff516980",
"title": "Find and Replace text for product description",
"content": "Is there a way for me to search for a specific word throught all the product descriptions on my store, and replace with another word?",
"userEmail": "[email protected]",
"creationTime": 1539565427013
},
{
"id": "61015c38-e47d-56f0-b176-2b75b74ff113",
"title": "Hide Mini Cart when using addToCart( )",
"content": "Is it possible to hide the Minicart from opening every time an add to cart button is clicked on a repeater page ? Surely this should be simple to allow us to do with code but I can't seem to find any info on what the element #minicart is to hide.",
"userEmail": "[email protected]",
"creationTime": 1521419757624
},
{
"id": "f713c784-0783-5160-a8e4-9b8f299462d5",
"title": "Failed to load initial data Error: {\"message\":\"value Some(150) for paging.limit is not valid\",\"details\":{}}\n",
"content": "Suddenly getting this error pop up when changing the dataset number to display setting.\n Failed to load initial data Error: {\"message\":\"value Some(150) for paging.limit is not valid\",\"details\":{}}\n It is for a custom product collection repeater. \n Have tried to adjust the number of items to display in the dataset settings but it only works for under 100 products. Any ideas if it can work for more than 100?",
"userEmail": "[email protected]",
"creationTime": 1523703671573
},
{
"id": "1b082477-575e-52d5-8841-9fce75e2d6df",
"title": "How to let SearchValue from Url",
"content": "Hi everyone, I am a newbie to using Wix Corvid.\nI would like to set coding from http:// domain.com/coverage?query= \"word\"\nthan the result will out put to repeater in same page, the \"word\" will show off on search bar.\n\nmy edit coding in following, please help and thx a lot\n\n \nimport {local} from 'wix-storage';\nimport wixData from 'wix-data';\n\n$w.onReady(function () {\n\n var sameWord = local.getItem(\"searchWord\");\n\n $w(\"#input1\").value = sameWord;\n $w(\"#input1\").placeholder = sameWord;\n $w('#dataset1').onReady(function () {\n\n search();\n });\n\n});\n\n\nexport function searchButton_click() {\n\n search();\n\nlet SearchValue = $w(\"#input1\").value;\n$w(\"#dataset1\").setFilter(wixData.filter().contains('subTitle', SearchValue).or(wixData.filter().contains('zone', SearchValue).or(wixData.filter().contains('description', SearchValue))));\n}\n \nfunction search() {\n\n wixData.query('name')\n .contains('name', $w(\"#input1\").value)\n .or(wixData.query('name').eq('description', $w(\"#input1\").value))\n\n .find()\n .then(res => {\n $w('#repeater1').data = res.items;\n\n });\n\nlet SearchValue = $w(\"#input1\").value;\n$w(\"#dataset1\").setFilter(wixData.filter().contains('subTitle', SearchValue).or(wixData.filter().contains('zone', SearchValue).or(wixData.filter().contains('description', SearchValue))));\n\n}\n\n",
"userEmail": "[email protected]",
"creationTime": 1529854178644
},
{
"id": "28679ee2-cb21-560c-85ed-14f4909e1d89",
"title": "Progressive Web Apps (PWA)",
"content": "Hey everyone, so I made a post about Progressive web apps a year ago, and wanted to get an update from Wix or it's users to see what's up.\n\nI want to turn my site into a Progressive Web App for IOS. \nIt goes as follows:\n- User visits site, Mobile site view loads\n- User adds site to homepage\n- User now has the website in fullscreen view as an app.\n\nIs this possible to achieve? I know that there is an app in the market that allows to convert the site into a PWA, but its not quite there yet.\n\nI think having the ability to make a site into a PWA would be a great feature, I mean, you could literally make an app bruh...",
"userEmail": "[email protected]",
"creationTime": 1518867438529
},
{
"id": "985edc12-a08f-541d-b670-9946bd4e9969",
"title": "Count dataset records after filtering it",
"content": "Hi,\nI am filtering my data with many parameters, after that i would like to show user how many records there are in this search. However, it seems the only way is to build same as filter query at get count from results. Is there any \"cleaner\" and easy way to get it?\n \nvar filter = wixData.filter();\n\nif ($w('#searchInput').value!=='') {\n filter = filter.contains('nativeEventName', $w('#searchInput').value)\n .or(filter.contains('tags', $w('#searchInput').value))\n ;\n \n}\nif ($w('#dropEventType').value!=='') {\n filter = filter.eq('eventType', $w('#dropEventType').value);\n}\nif ($w('#dropCategory').value!=='') {\n filter = filter.eq('categoryName', $w('#dropCategory').value);\n}\nif ($w('#dropService').value!=='') {\n filter = filter.eq('serviceName', $w('#dropService').value);\n}\nif ($w('#dropdownConnectors').value!=='') { \n filter = filter.contains('serviceName', $w('#dropdownConnectors').value);\n\n}\n// finally, we set the filter\nconsole.log(filter);\n$w(\"#datasetEvents\").setFilter(filter);",
"userEmail": "[email protected]",
"creationTime": 1533942776687
},
{
"id": "ca1c48af-c1a4-5564-b2b1-b8eff267fa3d",
"title": "Is it down too there, or it just in specific region ?",
"content": "\n \n",
"userEmail": "[email protected]",
"creationTime": 1532290869691
},
{
"id": "0dec3984-e24f-5d36-8ba1-3564f99cfaf2",
"title": "Dropdown links",
"content": "Hi Team,\n\nOn my website www.thebackgalley.co.uk (main page) you can see 3 dropdown options Airline, Hotel and Destinations. I would like for customers to be able to select an airline etc from the dropdown list and it take them to the airlines website. Is this possible? i have nothing in my code as of yet. \n\nThanks ",
"userEmail": "[email protected]",
"creationTime": 1518450145538
},
{
"id": "75a31709-7cfe-5070-9685-0fb79cb85ee2",
"title": "Count number of record in a collection",
"content": "Please I need help counting the number of a record in a collection and displaying the number of time occurred, in a text fiel, here is my code, but not working\n \n wixData.query(\"#dataset1\")\n .count()\n .then( (num) => {\n let numberOfItems = num;\n $w('#txtRegcourse').text = numberOfItems;\n } )\n .catch( (error) => {\n let errorMsg = error.message;\n let code = error.code;\n } );",
"userEmail": "[email protected]",
"creationTime": 1539467032564
},
{
"id": "fd9845ca-3094-524e-967a-816f529f820b",
"title": "Problem with Multilingual",
"content": "Hello,\n3 problems with the Multilingual feature:\n1. In a form, when I change alignment from left to right in one language, it changes in the other language as well\n2. When moving an image in 1 version, it automatically moves it in the other one\n3. Same thing with the header - changing location of a link affects both versions\n\nHow do I disconnect these features from both language so they will be independent?",
"userEmail": "[email protected]",
"creationTime": 1517154367382
},
{
"id": "ea52d05f-de7b-518f-a5bb-2bfcb6b232b8",
"title": "How to add Venmo to my checkout page?",
"content": "I have a delivery service website and need a Venmo option because students here use either cash or Venmo. No one uses cards or Paypal. Will this be possible? Do I have to implement code for this and if I do, how do I add Venmo by using code? Thank you. ",
"userEmail": "[email protected]",
"creationTime": 1526938461031
},
{
"id": "b5bde52f-df20-51b0-bbd7-fbfd7526af79",
"title": "Javascript Gmail API",
"content": " \nHi Everyone,\nI found great tutorials about how to send emails with GMAIL API from Javascript. \n\nTake a look:\nhttps://www.sitepoint.com/sending-emails-gmail-javascript-api/\n\nhttps://stackoverflow.com/questions/36946490/sending-email-from-my-javascript-app-via-gmail-api-mail-appears-in-gmail-sent\n\nBest,\n-Luigi\n",
"userEmail": "[email protected]",
"creationTime": 1539731043907
},
{
"id": "ea58bb83-cd41-5465-bf4d-4bbc947e9eb0",
"title": "Color Picker?",
"content": "Need a standard color Picker (with n palettes) on a (Corvid) form (like 5 colums across, n down). Table Component cannot do cell colors, Repeater cannot do 5 (or whatever) colors per row, then continue on next row. So it looks like the html-component is the only option.\nAny of you forum geniuses have a better design idea?\n\nEDIT: on second thought, maybe it can be done with a repeater. Put 5 boxes on a row, all hidden;onload, get palette, do some calculations and fill n rows. Any other ideas?",
"userEmail": "[email protected]",
"creationTime": 1531020628256
},
{
"id": "26f46d23-42ef-5a0c-ac5d-1922598da84d",
"title": "Parallax Feature on Mobile",
"content": "Hi There! I have a client who wants the mobile version of his site to Parallax... otherwise he wants to move his site to Word Press. I very much want to continue working with Wix... does anyone know code for this ? or even someone I can hire to be able to do this on the Wix platform? \n\nAlso, do we have any idea when WIX will be adding this to the mobile features? I really want to keep my client on WIX rather than having him switch to Word Press. Please help!",
"userEmail": "[email protected]",
"creationTime": 1535788026006
},
{
"id": "6c6ed54f-6487-5f71-96a4-2abcddae7b79",
"title": "Linked images to dataset works only in preview mode",
"content": "Hello I created a dataset and have permissions set to Read only ( also tried read+write) and have it set to site visitors can view but when I publish the site it doesnt work but in preview mode it works perfectly. I have also synced the dataset after making changes. can anyone please help it would be greatly appreciated. the url is kurdishloop.com",
"userEmail": "[email protected]",
"creationTime": 1516804324615
},
{
"id": "251e1969-93f1-5a8b-9561-18255f464bf2",
"title": "Question about record locking and one user overriding another’s data",
"content": "\nI have an application that allows end users to click in a table row to select it and assign or unassign themselves to two text fields. Everything works perfectly. However, If two people do this function at the same time, one overrides the other’s changes. Here’s the processing…\nThe table looks something like this:\n \nUser 1 User 2 Date Start End\n \n<Available> Joe Blow mm/dd/yyyyy hh:mm hh:mm...\n \n<Available> <Available> mm/dd/yyyyy hh:mm hh:mm...,\n \n…\n[Save ]\n\nA user clicks on a row, say row 1 above to assign himself to the <available> cell in the first row. The code inserts the current user’s name in the User 1 column in row 1 and then writes the row back to the collection using this code:\n\nlet rowData = {\n_id: row_id,\ntitle: rowtitle,\nuser1: rowuser1,\nuser2: rowuser2, \n…\n};\n$w(\"#table1\").updateRow(workrow, rowData);\nwixData.save(\"Schedule\", rowData) // update the row in the underlying collection\n.then((results) => {\nlet item = results; //see item below \n$w(\"#text30\").text = message + \"on \" + rowdate \n}) // Error \n.catch((err) => {\nlet errorMsg = err;\n$w(\"#text30\").text = (\"update error: \" + errorMsg)\nconsole.log(\"save filed: \" + errorMsg)\n});\n\nIf a user selects a row, Presses “Save” his name replaces User 1. If at the same time, another user is looking at that same row and sees it is <available>, after selecting it, his name overwrites the other user’s name when he presses save.\n\nQuestion: Should Wix use the record’s underling update time to sense that user 1 changed the row before user 2 tries to change the same row, knowing that the update has been changed prior to user 2 pressing “Save”, thus raising an error condition indicating that “another user has changed this same record” or something like that.\n\nOr do you have to code your own record locking strategy? Please advise. Obviously, having to code a concurrent update strategy to manage changes to the underlying database adds orders of complexity to the coding. It would seem that the updateRow action should manage the timestamps and trigger an error if the row's timestamps changes between updates. Thanks.",
"userEmail": "[email protected]",
"creationTime": 1544034645035
},
{
"id": "110eb114-b318-5252-98f7-85c3d7aa0232",
"title": "Google Cloud SQL",
"content": "Is it possible to use Cloud SQL as a database for a WIX website. I've tried to translate the articles on using external databases with WIX, but have not been able to understand how that would work with Cloud SQL. It would be nice if we could use the Cloud Proxy binary along with a key file to access our Cloud SQL. But that's probably too much to hope for. If this is possible, please provide detailed instructions.",
"userEmail": "[email protected]",
"creationTime": 1539066550061
},
{
"id": "75d6739e-5fbd-5d74-9ae3-72474da1670b",
"title": "Custom 404 on Dynamic Pages doesn't work",
"content": "I've used the following article in order to create a custom 404 page:\n\nhttps://support.wix.com/en/article/customizing-your-404-error-page\n\nAlthough the 404 works perfectly when on static pages, but when a dynamic page redirects to 404 it goes to the usual Wix default?\n\nNot sure if it's a bug or if I'm missing something.\n\nExample:\n\nRandom page on my site\n\nvs\n\nRandom page over dynamic path",
"userEmail": "[email protected]",
"creationTime": 1537053095638
},
{
"id": "4451fd03-8c24-57e5-8aef-8925fb663599",
"title": "Repeater Hover",
"content": "hey,\nI have some problem, i try to find solution on web or here in search but no results\nlook at the video and see the code.\nwhen i hover container in\nRepeater fast its stuck on hover mode.\n\n \n\n $w('#dataset2').onReady(() => {\n $w('#CatgContainer').onMouseIn((event) => {\n let $item = $w.at(event.context);\n $item('#boxCategoryHover').show(\"float\", floatOptions);\n })\n\n $w('#CatgContainer').onMouseOut((event) => {\n let $item = $w.at(event.context);\n $item('#boxCategoryHover').hide(\"float\", floatOptions);\n })\n })\n",
"userEmail": "[email protected]",
"creationTime": 1544409943384
},
{
"id": "93687ba8-1db0-53d2-9d2a-7669863f446c",
"title": "How to create Waiting List in Registration",
"content": "Hello! According to this article I should be able to toggle On the \"Waiting List\" component in the Event Registration Email area. However, Waiting List does not appear. Any suggestions as to how to turn this feature On? \n\nThank you in advance.\n\n \n",
"userEmail": "[email protected]",
"creationTime": 1531061849052
},
{
"id": "51280f69-243a-5379-8364-5074c6accdd9",
"title": "editor whites out /hangs on loading particular (corrupt?) page",
"content": "A page on my site seems to have some issues. When I select the page in the pages editor, I see the top of the page as expected. however, if I move the cursor to click on the page or click on the menu editor for the dropdown selections of rename/delete/etc ... the screen whites out and effectively hangs.\n\nI don't know if the page has been corrupted somehow or is grabbing infinite resources, but I need to delete it. However, all the methods to select the page cause this behavior. \n\nAll other pages act as expected. Support has not been of help at this point. \n\nI would just like to delete it.\n\nAny ideas? ",
"userEmail": "[email protected]",
"creationTime": 1524993039301
},
{
"id": "2c2f5033-5801-5045-b8da-aed81f2bd790",
"title": "'loginEmail' value to pass to 2nd DB",
"content": "I have a members area on my site which people can create an account via the standard username/password which gets saved in the Wix CRM (PrivateMembersData collection). After they click submit to create the account, it automatically takes them to another page which has form fields connected to my 2nd database which are used to create their dynamic profile page. The 2nd database has a reference field which points back to the 'loginEmail' column of the PrivateMembersData collection. \n\nThe problem I'm having is that when the member fills out the form (2nd database), all their data gets saved correctly, but the reference field ('loginEmail') is left blank. Unless I manually go in and set it via the Wix Live Database manager. [SCREENSHOT BELOW]\n\nHow can I have the users' loginEmails get automatically passed to the 2nd database so that I don't have to do this manually?\n\nBecause if a user logs out and logs back in, they're unable to see their data as the connection from PrivateMembersData and the 2nd database is broken, when this field is blank for their row.\n\nThanks in advance!\n\n \n",
"userEmail": "[email protected]",
"creationTime": 1539011605825
},
{
"id": "662464e6-2fb9-5289-8df2-09b8cc842f8b",
"title": "Wix Users (and more?) is down",
"content": "Is anyone else experiencing this? Login and signup aren't working in my sites, and I am logging server errors. Wix Support (what a misnomer!) is absolutely a waste of time.\nHow often does this happen?",
"userEmail": "[email protected]",
"creationTime": 1539262437742
},
{
"id": "97407667-90bd-535e-b472-9f286ca3e32a",
"title": "pagination with code for search results",
"content": "\nhi i need help with adding pagination to my search results page with some code, right now i have everything working fine i just need an example code to add some pagination to search results. i have added the pagination before but when you would click the next page it would reset the search results in the repeater.",
"userEmail": "[email protected]",
"creationTime": 1540623209495
},
{
"id": "85ba6523-3af4-586e-858e-c52233a6485a",
"title": "Collapsible Logo",
"content": "I'm trying to recreate this feature: https://www.gulfstream.com/, where the logo (Gulfstream) changes into the icon as you scroll down. I have the icon in a white box that covers the main logo, which is \"collapsed on load\". What code do I need to add to get this to work? Site link here: https://pauledesign.wixsite.com/airspace",
"userEmail": "[email protected]",
"creationTime": 1540354738287
},
{
"id": "5ca372ed-6216-5314-9b6d-9eabaf6fce67",
"title": "Charge customers if they are choosing Manual Payments",
"content": "In India, most of the shipping companies charge the seller additional fees if the customer is paying them cash at the time of delivery. I need to charge customers a fee if they choose Manual Payments such as Cash On Delivery. Currently, wix doesn't have a feature where I can charge customers only in the case of Manual Payments. \n\nIs there a code or any other way to charge customers opting for Manual Payments OR charge everyone a handling fee irrespective of their mode of payments but provide a discount coupon to only those who are doing an online payment OR Cashback for customers using online payments?\n\nAny help will be appreciated.",
"userEmail": "[email protected]",
"creationTime": 1533189699751
},
{
"id": "5f025e96-82a4-5b88-aaf3-28f100881f29",
"title": "Decreased mobile load time by 15+seconds with preload key request but still have small error",
"content": "TLDR - Is there ANY other way to do a preload key request with wix. PLEASE! It shaves off so much time it's insane.\n\nSo running the google pagespeed test, it tells me to use preload key requests to speed up the website. \"Preload key requests 14.04 s Consider using <link rel=preload> to prioritize fetching resources that are currently requested later in page load.\"\n\nIt literally would increase page load time by 14 seconds, which is ridiculous. \n\nI was able to pop this code line into the 'tracking and analytics' because that's the easiest way to get an html code on all pages. <link rel='preload' href=\"https://www.hydrochemsystems.com/_partials/wix-bolt/1.2670.0/node_modules/santa-wix-code/dist/bolt-worker.js>\n\nIt works on every page except the home page. The number within the code \"1.2670.0\" does seem to change, and I wonder if there's a preload request that's more basic that wouldn't change. It also shows code at the top of the pages when switch between them or on a refresh, causing the menu bar to disappear. \n\nI've tried \"<link rel='preload' href=\"https://www.hydrochemsystems.com/_partials/wix-bolt/1.2687.0/node_modules/santa-wix-code/dist/bolt-worker.js\" as=\"script\">\" but google says \n\n Warnings: A preload <link> was found for \"https://www.hydrochemsystems.com/_partials/wix-bolt/1.2687.0/node_modules/santa-wix-code/dist/bolt-worker.js\" but was not used by the browser. Check that you are using the `crossorigin` attribute properly. \n\nI've tried the crossorigin as crossorigin, crossorigin=\"anonymous\" crossorigin=\"\" and crossorigin=\"use-credentials\".\n\nI don't know what else to do but this is a massive game changer if I can just get it to work and not mess up the refresh.\n \n \n\n\n",
"userEmail": "[email protected]",
"creationTime": 1540678844782
},
{
"id": "25ce5afe-ed09-51e5-be35-92e49db4ece2",
"title": "My E-commerce website on Wix is loading slowly",
"content": "Hi All,\n\nCurrently, my website takes time to load especially on mobile. The site elements starts showing one by one which doesn't look professional at all. I did hear similar reviews from other Wix users. Is there any way I can make my website to load at a faster rate? If not, atleast load all my site elements show up at the same time.\n",
"userEmail": "[email protected]",
"creationTime": 1521836624201
},
{
"id": "dbfa8b10-2a0b-59da-ba93-99f948389d44",
"title": "Help with If/Else Statement",
"content": "Hello,\n\nThis seems very basic, but for some reason I can't get it to work. I want the Onclick for button 60 to be called only if the if statement is valid (input10 has text).\n\n\n\n \n\n\n\nI have tried many ways, and I simply can't get it to work. However, the onclick event happens without the if statement.\n\n ($w('#input10').value.length >= 8) \n ($w('#input10').value !== \"\") \n ($w('#input10').value === true) \n\n\nhere is the code block that doesn't seem to work :\n\n\n\n \nif \n ($w('#input10').value.length >= 8) \n{\n $w('#button60').onClick((event) => {\n\n let user = wixUsers.currentUser;\n let isLoggedIn = user.loggedIn;\n if (!isLoggedIn) {\n wixUsers.promptLogin().then(() => {\n processPlan(planId, planPrice);\n })\n } else {\n processPlan(planId, planPrice);\n }\n }\n );\n\n}\n\n\n\n\nThe code for the entire page:\n\n\n\n \nimport wixLocation from 'wix-location';\nimport wixWindow from 'wix-window';\nimport wixPay from 'wix-pay';\nimport wixPaidPlans from 'wix-paid-plans';\nimport wixUsers from 'wix-users';\n\n\n$w.onReady(function () {\n\n const currentPlanObject = $w(\"#dynamicDataset\").getCurrentItem();\n const planId = currentPlanObject._id;\n const planPrice = currentPlanObject.price;\n\n\nif \n ($w('#input10').value.length >= 8) \n{\n $w('#button60').onClick((event) => {\n\n let user = wixUsers.currentUser;\n let isLoggedIn = user.loggedIn;\n if (!isLoggedIn) {\n wixUsers.promptLogin().then(() => {\n processPlan(planId, planPrice);\n })\n } else {\n processPlan(planId, planPrice);\n }\n }\n );\n\n}\n \n\n});\n\nfunction processPlan(myId) {\n\n \n wixPaidPlans.purchasePlan(myId).then(orderObject => {\n wixWindow.openLightbox(\"Contact1\", orderObject)\n .then((goForIt) => {\n if (goForIt) {\n wixPay.startPayment(orderObject.wixPayOrderId);\n }\n });\n })\n \n}\n\n\n\n\nPlease help! I hope it's just some small mistake I made.\n\nThanks in advance!\n",
"userEmail": "[email protected]",
"creationTime": 1527893000051
},
{
"id": "868ea672-2917-5524-9e51-d30610f1f893",
"title": "Create multi-page form connected to database",
"content": "I currently have a very long application from divided roughly in half between two different pages connected to the same database. The first \"Save & Continue\" button links to the second page, but logs the inputted information as a separate entry. The second page is then submitted with its own entry. \n\nI need these to submit as a single entry, ideally from the same page, transitioning between steps of the form rather than pages of the site. \n\nI tried to rebuild the form using this template:\nhttps://www.wix.com/code/home/example/Multistage-Form\n\n...but had no luck. The form was non-functioning. This also seems like a cumbersome way to code the form, disconnecting all of its elements from the database, that is. \n\nI can see that the submit button has the option to connect the \"next page\" in the dataset, which leads me to believe I can simply divide the fields within the database, but I don't see this option. \n\nHas anyone else encountered this issue or created any solutions? Any help is greatly appreciated.",
"userEmail": "[email protected]",
"creationTime": 1519017491938
},
{
"id": "0b9372a7-1127-5591-9c39-60d114606a02",
"title": "Wix + External Fonts?",
"content": "Hi!\n\nAnyone know if it's possible to embed external fonts into a Wix site? I'm not very competent at coding so any messing about with CSS files, aside from the basics, might be tricky.\n\nI can't seem to see anything concrete online about it. Or even a place to start weirdly enough.\n\nCheers,\nStu.\n\nAnd just to add, the typeface I'm looking to use online is DIN Next from Fonts.com https://www.fonts.com/font/monotype/din-next",
"userEmail": "[email protected]",
"creationTime": 1530444677996
},
{
"id": "4fa19313-8515-56fa-8a2e-a49266239534",
"title": "Adding two databases",
"content": "This may be a silly question...\n\nI am attempting to have two tables, side by side, using two different database sets. However, the second DB isn't popping up when I attempt to connect the DB to the table. Do you know a reason this may be happening? Thanks. ",
"userEmail": "[email protected]",
"creationTime": 1544522278951
},
{
"id": "6bb3d7d3-c98e-5625-9b34-72a75febf0f4",
"title": "Creating multiple show-more/show-less links",
"content": "Hi!\n\nI'am trying to figure out how to add multiple show-more links. I'am not super into code so don't blame me, I tried hahah. This is the code I got so far but issn't working.\n\nlet fullText; // variable to hold the full text\nlet shortText; // variable to hold the short version of the text\n\n$w.onReady(function () {\n // how many characters to include in the shortened version\n const shortTextLength = 1000;\n // read the full text and store it in the fullText variable\n fullText = $w(\"#text6\").text;\n // grab the number of characters defined in shortTextLength and store them in the shortText variable\n shortText = fullText.substr(0, shortTextLength) + \"...\";\n // set the contents of the text element to be the short text\n $w(\"#text6\").text = shortText;\n\n});\n\nexport function button2_click(event) {\n // check the contents of the text element \nif ($w(\"#text6\").text === shortText) {\n // if currently displaying short text, display the full text\n $w(\"#text6\").text = fullText;\n $w(\"#button2\").label = \"Minder\"; \n} else {\n // if currently displaying full text, display the short text\n $w(\"#text6\").text = shortText;\n $w(\"#button2\").label = \"Lees meer...\";\n}\n}\n\n\n$w.onReady(function () {\n // how many characters to include in the shortened version\n const shortTextLength = 1000;\n // read the full text and store it in the fullText variable\n fullText = $w(\"#text1\").text;\n // grab the number of characters defined in shortTextLength and store them in the shortText variable\n shortText = fullText.substr(0, shortTextLength) + \"...\";\n // set the contents of the text element to be the short text\n $w(\"#text1\").text = shortText;\n\n});\n\nexport function button1_click(event) {\n // check the contents of the text element \n if ($w(\"#text1\").text === shortText) {\n // if currently displaying short text, display the full text\n $w(\"#text1\").text = fullText;\n $w(\"#button1\").label = \"Minder\";\n } else {\n // if currently displaying full text, display the short text\n $w(\"#text1\").text = shortText;\n $w(\"#button1\").label = \"Lees meer...\";\n }\n}\n\n\nI found this link: https://support.wix.com/en/article/wix-code-tutorial-creating-a-show-more-link\nwhich works perfectly with one text and one button but when I copy the code to make another show-more link (for #text6 and #button2) the text box (#text6) shows the content of text1 after clicking the \"Lees meer...\" button (#button2).\n\n",
"userEmail": "[email protected]",
"creationTime": 1521885644940
},
{
"id": "63671683-c695-5fda-b81e-f099ac845d3b",
"title": "Bypass on Multi-step forms with arrow key",
"content": "One of the examples provided for doing multistep forms was to use a slideshow and on each slide add a block of content. However, when a user press left or right key can jump between slides and there's no way to disable that?\n\nSo basically if a user is typing and hit the left arrow key it'll go to the prev slide. Instead of move in the text field...",
"userEmail": "[email protected]",
"creationTime": 1536720147802
},
{
"id": "79fac764-81d3-5dc3-bf11-e1df22a7f308",
"title": "How do i create a list from certain items on a list ",
"content": "I want to be able to click on bathroom fixtures and collapsible list appears with toilet roll holders, towel rings, soap dishes, shelves, hooks, mirrors & cabinets etc (with a little dropdown arrow) \n \n",
"userEmail": "[email protected]",
"creationTime": 1515514588872
},
{
"id": "1d23fcbf-5105-5d72-988a-63c9f4ade6b2",
"title": "TypeError: cellData.indexOf is not a function",
"content": "I have a table in a dynamic page connected to a dataset, the first column of the table retrieves images (uploaded to database from media > site files).\n\nI'm trying to link the images in the table to Lightbox, i.e. when a cell populated with an image is clicked the image will popup.\n\nMy Code: \n\ncode inserted in Lightbox:\nimport wixWindow from 'wix-window';\n\n$w.onReady(function () {\n \n const recievedImage = wixWindow.lightbox1.getContext(); \n $w('#image1').src = recievedImage;\n});\ncode inserted in dynamic page:\nimport wixWindow from 'wix-window';\n\nexport function table1_cellSelect(event, $w) {\n let cellData = event.cellData; \n \n //the cell contains an image\n if (cellData.indexOf(\"image://\") !== -1){\n wixWindow.openLightbox(\"lightbox1\", cellData); \n }\n}\ntable1 properties:\nSelect by cells\nOnCellSelect - table1_cellSelect\n\nError:\n TypeError: cellData.indexOf is not a function\n\nCan anyone please help me and correct my code??\n\nthanx,\nNoa\n\n",
"userEmail": "[email protected]",
"creationTime": 1516192253218
},
{
"id": "f20ba4a8-901f-5d03-860e-561b94b06bd2",
"title": "Trend problem when using multilingual in the Wix platform",
"content": "Hello, when using multilingual on the Wix platform, and when you make the modification to the English version gets a direct change to the Arabic version, for example when modifying the direction of the basic menu elements in the English version to become left to right, the direction of the elements in the Arabic version also becomes Left to right! How do I solve this problem?",
"userEmail": "[email protected]",
"creationTime": 1524362604686
},
{
"id": "78d09b01-6ca0-5746-82a4-9e02db81552a",
"title": "Call a Fullstory function when form submits",
"content": "Hi\n\n\nI want to call a Fullstory function (FS.setUserVars) when I submit a form on my Wix page, using data from the form fields. I couldn't find a way to do it using corvid, and the Fullstory app integration is just for the basic tracking code, not for custom user variable recording.\n\n\nThanks!",
"userEmail": "[email protected]",
"creationTime": 1515742554251
},
{
"id": "e1f03a9f-bc11-59ff-9875-5661c85b52f0",
"title": "Making an auction site (SOLVED)",
"content": "Edit: I've now made a full working auction site in WIX. If you need help or want me to make one for you, send a mail to [email protected].\n\nHi! I've been trying to make an auction site for cars, but can't seem to get it quite right..\n\nHas anyone made a working auction site in Wix? Or if you know how to do it, please get in touch with me! Would love to get some guidance/help :)\n\nIn forhand, thanks! ",
"userEmail": "[email protected]",
"creationTime": 1524049963867
},
{
"id": "3754465d-af99-5526-867c-741285876241",
"title": "Sync Booking Database with 3rd Party Database",
"content": "I have two booking systems, Wix and back-office applications. I need to sync them periodically. My questions are:\n\n1. where Wix keeps out the box booking database with appointments, as I see Schedule, Services and Staff db's only? I need to read these appointments and send them to 3rd party API for processing.\n\n2. How do I create new appointments programmatically by inserting new records into Wix appointment db, which is actually not presented in the Wix database structure?\n\n3. Can I create custom database for my Wix appointments and make Wix out the box booking application to work with this custom database?\n\n\n \n",
"userEmail": "[email protected]",
"creationTime": 1541831651547
},
{
"id": "70dd9986-f3af-576b-8dd7-4969950a0319",
"title": "Follow Users",
"content": "I would like to implement a system that would allow the users of my site to follow/Support each other something similar to the Twitter follow system. Has anyone done this in their own sites and if so how did you manage it ?",
"userEmail": "[email protected]",
"creationTime": 1532692778162
},
{
"id": "8050ca4f-6a6c-5f50-a0ed-11887d658f2f",
"title": "how to filter a table according to the current user",
"content": "I would like to show only a few document releases according to the user you are accessing.\nFor example: Each user must have private access to a database documents through a table.\nHow do I collect current user information (email for example) and use it as an intruction for filtering?\n\n\n \n",
"userEmail": "[email protected]",
"creationTime": 1515422235407
},
{
"id": "b6a3914c-eacb-5d05-b844-2e49ea4f3dd8",
"title": "Get value from one page and send it to another page",
"content": "\n \nI want the value that is kept in a variable to be available at any other page. Is there anyway to do this?\n",
"userEmail": "[email protected]",
"creationTime": 1516079748386
},
{
"id": "8c3ff20b-ecfe-5934-a038-282de5207c68",
"title": "The text editor is NOT working.",
"content": "\n \n",
"userEmail": "[email protected]",
"creationTime": 1545894142917
},
{
"id": "23563a6a-a9fd-5c37-a726-187f546df536",
"title": "Freeze repeater / user input / image",
"content": "Hi,\n\nHow can i freeze repeater / user input / image?\n",
"userEmail": "[email protected]",
"creationTime": 1545578497935
},
{
"id": "8f503a35-6156-5afc-ba66-3a983aa5cdea",
"title": "Linking search results in a table to a dynamic page",
"content": "Hello all,\n\nI'm building a website that allows users to search for a company based on the name and returns the results in a table. I would then like to link the search results to a dynamic page that provides more details of the company.\n\nI've added the database of companies and built the search function and table based on the following code:\n\n\n \n\nThis gives the following results on the site when searching for \"Smith\":\n\n\n \nI'm now trying to link this results table to a dynamic page so that when a row is selected and clicked the user will be taken to a page containing more detailed information about the company.\n\nI've found the following code in the Forum which I think will achieve this:\n\n\n \n\nUnfortunately I'm a world-class beginner at website coding and I have no idea what code to enter for this line as I don't know the syntax for my dynamic page:\n\n wixLocation.to(`${myRow[link-myDynamicPage-_id]}`); \n\nIs the code above the correct code to use for what I am trying to achieve (ie linking my search results to a dynamic page)?\n\nI'd also like the information that appears on the dynamic page to appear as a table with the headings along the left-hand side. I can only find tables that have headings across the top and as there are 20 fields of data this is impractical for displaying the information. My current dynamic page just had text fields for the results but this is quite cumbersome:\n\n\n\n\n \n\n\nSorry this turned into such a long post! I'd be really grateful for some assistance as I'm a little lost with this problem.\n\nThanks so much in advance,\nHuw\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1520744679957
},
{
"id": "153d3e96-50c6-5460-a6f3-ac9926092f11",
"title": "Is there any ways to calculate in database cells?",
"content": "I want to show my website's members information in dynamic pages automatically from a database, like photo / name / birth / age / etc.\n\nBut I can not find the way to show the age... because age has to be changed day by day.\n\nso if it's possible to use a formula like excel (DATEDIF(\"2003/4/7\",\"2014/2/12\",\"Y\")) in wix code, it's very nice, but it seems to be impossible.\n\nDoes someone know how to do this or some other way to show age automatically?\nPlease help.",
"userEmail": "[email protected]",
"creationTime": 1527632632514
},
{
"id": "45325244-b534-5d32-b740-4ef2b9083dac",
"title": "How could I set a PDF preview, on dynamic pages, to show a PDF file uploaded and added to the database ?",
"content": "Hi,\n\n\nI'm using a database and dynamic pages to list a selection of documents.\nMy database contain the followings :\n* Intern file reference\n* Date\n* Type of document\n* Title\n* Description\n* === Uploaded PDF file, usually 1 or 2 pages ===\n\nMy dynamic pages are showing\n* Date\n* Type of document\n* Title\n* Description\nAnd I would like to add a window showing the actual PDF on every dynamic page. I've used the \"PDF Viewer\" app but I don't see any way to make it work with the dynamic database, meaning that it can only show up the same file on every page ...\nThose PDF are short official documents and I can't just copy/paste the text in a Text frame, I need to keep the exact PDF with it's exact presentation.\n\n\nSo, is there anyway I could set up a PDF preview to show the specific PDF document corresponding to each dynamic page, using the PDF document listed in my database sheet ?\n\nIf not, why is there even an option to put a document in the database ? Only to use a button link ?\n\n\nIn advance, thanks a lot for your help.",
"userEmail": "[email protected]",
"creationTime": 1544707515562
},
{
"id": "52d6be88-44e8-50b6-b26b-db92671ec493",
"title": "Viewing infos of the member from custom Dataset",
"content": "I used this code to retrieve the information of a member from a custom dataset but instead it is returning the same data in all member account. My intent is to return only the member data log in.\nNeed help please\nimport wixUsers from 'wix-users';\nimport wixdata from 'wix-data'\n$w.onReady(function () {\n wixUsers.onLogin((user) => {\n let userId = user.id; // \"r5cme-6fem-485j-djre-4844c49\"\n let isLoggedIn = user.loggedIn; // true\n if (wixUsers.currentUser.loggedIn) {\n user.getEmail()\n .then((email) => {\n let userEmail = email; // \"[email protected]\"\n $w(\"#MemberPlanDataset\").onReady(() =>\n user.getMemberPlanDataset()\n .then((MemberPlanDataset) => {\n let UserPlan = MemberPlanDataset;\n let Myemail = UserPlan.email;\n if ((userEmail) === UserPlan.email) {\n let MyPlan = UserPlan.Plan;\n let MyPrix = UserPlan.Prix;\n let MyStatut = UserPlan.Statut;\n let MyValidite = UserPlan.validite;\n } else {\n $w(\"#box18\").show();\n\n }\n\n }));\n });\n }\n });\n});",
"userEmail": "[email protected]",
"creationTime": 1517745897676
},
{
"id": "14277d54-3cb3-5c9f-ad63-9fa57ee41bc3",
"title": "Responsive Site Layout",
"content": " \nHi,\n\nI just enabled developer tools for Wix Code and am exploring its capabilities. With Wix Code is there a way that I can make the site layout responsive? I want to get a more full width look. The grid lines have always been restricting so if anyone has tried this out, let me know!\n\nThank you.",
"userEmail": "[email protected]",
"creationTime": 1520214696659
},
{
"id": "87f1a0e9-c30d-5245-aada-603bd3984597",
"title": "ADD A CONTACT ME BUTTON FOR MEMBERS",
"content": " \nI am trying to add a CONTACT ME button to members to enable other members to either call or send them a direct email, without going through database or admins.\nFree Members will need to be able to add their own phone number &/or email address to a button or other function for paid members to contact them DIRECT, preferably in the menu below the PROFILE or part of the profile page.\nI am happy to pay a pro to do this is needed but nobody seems to be able to tell me a cost to do so, or how I can do it myself.\n \n\nCan somone please explain how I can do this?",
"userEmail": "[email protected]",
"creationTime": 1518366630493
},
{
"id": "23f6c0a6-f380-5e78-bd98-a75361aae042",
"title": "How to Show location on Google Maps?",
"content": "Hi,\n\nI have the following components on a Dynamic Page:\n\nTable (ID = table1, populated by dynamicDataset, title contains names of places)\nGoogle Map (ID = googlemap1, should show the location of the Current Item title) \n\nIm trying to show the location of the current item title (.getCurrentItem().title) on the map when its displayed in the viewable part of the current window (onViewportEnter).\n\nUsing this example as a stating point: How to Use Google Maps Services in Wix Code \nAnd this Places API Guide\n\n\nI have google API and enabled the Places API.\n\nI created a web module (backend) file named gapi.jsw\nIn that file, web modules which will be used to call the Google Maps online service functions.\nimport {fetch} from 'wix-fetch';\nconst key = \"Crazy-long_Google_API-key\"; // My own API key is here\n\n// Retrieve details of the selected location\nconst dpart1 = \"https://maps.googleapis.com/maps/api/place/details/json?\";\nconst dpart2 = \"&key=\";\n// this function is triggered when clicking on a suggestion list repeater item\nexport function details(id) {\n let placeid = \"placeid=\" + id;\n let url = dpart1 + placeid + dpart2 + key;\n return fetch (url, {method: 'get'}).then( (httpResponse) => { \n if (httpResponse.ok) { \n return httpResponse.json(); \n }\n });\n}\n\n\n 3. In the Map page i added the following code, \nimport wixWindow from 'wix-window';\nimport {local} from 'wix-storage';\nimport {details} from 'backend/gapi';\n\n//this function is triggered when the map is displayed in the viewable part of the current window (onViewportEnter)\nexport function location_title() {\n let place_id = $w('#dynamicDataset').getCurrentItem().title;\n set_details(place_id);\n}\n\n 4. The set_details( ) function need to be adjusted to my needs. Since am using Place and not address (as in the example) i assume the Fields need to be changed from address_components (as country or city) to geometry/location. Furthermore, the example using a text input and repeater which i don't. Here is the original code from the link above with :\n\n/* This function calls the details() web module to retrieve the details (city, country, utc, etc) of the selected or saved location. */\n\nfunction set_details(val) {\n details(val).then(function(resp) {\n \t// find the city (locality) and country of the location\n let place = resp.result;\n var filtered_array = place.address_components.filter(function(address_component){\n return address_component.types.includes(\"country\");\n }); \n var country = filtered_array.length ? filtered_array[0].long_name: \"\";\n filtered_array = place.address_components.filter(function(address_component){\n return address_component.types.includes(\"locality\");\n }); \n var locality = filtered_array.length ? filtered_array[0].long_name: \"\";\n console.log(\"details: \" + locality);\n \n let name = place.formatted_address;\n let id = place.place_id;\n let utc = place.utc_offset;\n let lat = place.geometry.location.lat;\n let lng = place.geometry.location.lng; \n\n // save the details of the location with wix-storage\n local.setItem(\"place_city\", name);\n local.setItem(\"place_lat\", lat);\n local.setItem(\"place_lng\", lng);\n local.setItem(\"place_utc\", utc);\n local.setItem(\"place_id\", id);\n $w(\"#input1\").value = name; // set input field to location\n \n // array of location detail items for the repeater\n let detailsList = \n [\n {\n \"_id\": \"1\",\n \"text3\": \"place name\",\n \"text4\": name\n },\n {\n \"_id\": \"2\",\n \"text3\": \"latitude\",\n \"text4\": \"\" + lat\n },\n {\n \"_id\": \"3\",\n \"text3\": \"longitude\",\n \"text4\": \"\" + lng\n },\n {\n \"_id\": \"4\",\n \"text3\": \"utc\",\n \"text4\": \"\" + utc\n },\n {\n \"_id\": \"5\",\n \"text3\": \"place id\",\n \"text4\": id\n } \n ]; \n\n // set the details repeater data and show it\n $w(\"#repeater2\").data = detailsList; // add data to our repeater\n $w(\"#repeater2\").show();\n }); \n}\n\nWill appreciate your help in adjusting the code for my needs.\n\nTHANX : )\n",
"userEmail": "[email protected]",
"creationTime": 1541487833522
},
{
"id": "0b74ddd5-ac9b-526d-a157-37b292930f36",
"title": "Problem with the integration of iFrame ",
"content": "I have tried to intregrate the following link by seeting an iFrame on our website:\n\n <script type=\"text/javascript\" src=\"https://myconvento.com/assets/system/js/external/iframeResizer.min.js\"></script>\n<script type=\"text/javascript\" charset=\"utf-8\" data-id=\"4239\" data-c=\"0\" id=\"newsroom_embedded_js\">\n (function () {\n var script = document.createElement(\"script\");\n script.type = \"text/javascript\";\n script.async = true;\n script.src = \"https://myconvento.com/assets/system/js/external/newsroom_embedded.js.php\";\n var i = document.getElementsByTagName(\"head\")[0];\n i.parentNode.insertBefore(script, i);\n })();\n</script>\n\nUnfortunately there only appears a white screen. Is there a problem with the link? We got the link from a company whose webbased software we are using for publishing our press relations.\n\nMaybe somebody knows what is going wrong.\n\nThanks in advance.",
"userEmail": "[email protected]",
"creationTime": 1516208233633
},
{
"id": "846d0462-b5e2-5f88-9f6f-131cf73e065d",
"title": "Lightboxes are so slow",
"content": "I know it's already been discussed here so many times, but it's just can't be acceptable.\nOpening lightboxes on mobile is just too slow.\nIt's doesn't make sense that you have to wait more than a second for it to pop up (on some of the most advanced cellphones).\nOn iPhones, it's relatively OK (far from being perfect though). but on Android it's just doesn't fit to the current decade standards.\nTo make it clear - I'm talking about triggered lightboxes (so the delay settings on the editor is irrelevant). + It's much more noticeable, if you pass some data (even a small object) to it.\n\nWhenever it's possible, I use collapsed-expanded boxes instead, but when it's not, I'm helpless.\n\nAny idea/workaround/advice will be welcomed.\nThanks,\nJ.D.\n ",
"userEmail": "[email protected]",
"creationTime": 1539441037407
},
{
"id": "cf635c66-99e5-5886-8c98-adee89f93772",
"title": "Fade out text box",
"content": "Hi there,\nI know that Wix has a great Fade in function for text, but I would like the text to fade in, then fade out, or if easier, just fade out after about 5 seconds. Can anyone help?\nThanks\n",
"userEmail": "[email protected]",
"creationTime": 1517862760904
},
{
"id": "efcc0296-85bc-5d14-a98d-93ebdc58fd1e",
"title": "need help with pagination on search results page ",
"content": "hi i need help with adding pagination to my search results page with some code, right now i have everything working fine i just need an example code to add some pagination to search results. here is the search function code i am using: \n\n\nfunction search() {\n\n wixData.query('AgentsBuyer')\n\n .contains('location1', $w(\"#searchBar\").value)\n .or(wixData.query('AgentsBuyer').contains('zipCodes', $w(\"#searchBar\").value))\n .or(wixData.query('AgentsBuyer').contains('name', $w(\"#searchBar\").value))\n .or(wixData.query('AgentsBuyer').contains('location2', $w(\"#searchBar\").value))\n .or(wixData.query('AgentsBuyer').contains('location3', $w(\"#searchBar\").value))\n .limit(200)\n .find()\n\n .then(results1 => {\n\n $w('#repeater1').data = results1.items;\n if (results1.length > 0){\n $w('#noResText').hide();\n } else {\n $w('#noResText').show();\n }\n \n\n })\n .catch((err) => {\n let errorMsg = err;\n });\n\n}\n\n\n\nthanks for all the help in advance !!!!",
"userEmail": "[email protected]",
"creationTime": 1530383910714
},
{
"id": "b0e07f5b-424b-582f-adca-ed005019d656",
"title": "Check the validity of all input in one go",
"content": "I have created a form with text inputs, dropdowns and checkboxes. Some of them are required and some aren't. Since there are too many input fields, I want to select all input in one go, check if all of the inputs are valid. Is there any functions that I can use? I tried grouping the elements together and used forEachItem, and apparently it doesn't work.",
"userEmail": "[email protected]",
"creationTime": 1521106160659
},
{
"id": "71879c7f-8ea4-545a-873e-0cfb7a345911",
"title": "Improve responsiveness on payment page",
"content": " Hi team,\n\nAnother post to try and improve my coding skills and make some of the site more responsive. I have a ton of code to check the validity on my paymnet page, it seems at times to slow down user input when typing (all the usual stuff has been done with cookies, the latest version of Chrome etc)\n\nI think maybe if I improve the code it may help? I have spoken to the Wix team and they are looking into this at their end also.\n\nAnyway, below I have some code for 2 participants, which with more people the code size increases... I have 8 spaces, so you can imagine how much code there is... \n\nI have played with functions within function to reduce but it behaves oddly.. this code is the only way, so far that it works as expected.\n\n\nThank you!\nlet validationMessage = \"\"\n\nfunction participant1(){\n if (!$w('#medicalsOne').value) validationMessage += 'Participant 1 - If no medicals, please enter None\\n';\n if (!$w('#ECNameOne').value) validationMessage += 'Participant 1 - Please enter emergency contact name\\n';\n if (!$w('#ECNumbOne').value) validationMessage += 'Participant 1 - Please enter emergency contact number\\n';\n if (!$w('#datePicker1').value) validationMessage += 'Participant 1 - Please enter DOB\\n';\n if (!$w('#groupExperience').value) validationMessage += 'Please provide a brief overview of your/groups expereince\\n';\n if (!$w('#courseAims').value) validationMessage += 'Please provide a brief aim of your trip/course\\n';\n $w('#validationMessageDetails').text = validationMessage;\n $w('#validationMessageDetails').expand();\n}\n\nfunction participant2(){\n if (!$w('#medicalsOne').value) validationMessage += 'Participant 1 - If no medicals, please enter None\\n';\n if (!$w('#ECNameOne').value) validationMessage += 'Participant 1 - Please enter emergency contact name\\n';\n if (!$w('#ECNumbOne').value) validationMessage += 'Participant 1 - Please enter emergency contact number\\n';\n if (!$w('#datePicker1').value) validationMessage += 'Participant 1 - Please enter DOB\\n';\n if (!$w('#nameTwo').value) validationMessage += 'Participant 2 - Please enter a name\\n';\n if (!$w('#contactNumbTwo').value) validationMessage += 'Participant 2 - Please enter contact number\\n';\n if (!$w('#medicalsTwo').value) validationMessage += 'Participant 2 - If no medicals, please enter None\\n';\n if (!$w('#ECNameTwo').value) validationMessage += 'Participant 2 - Please enter emergency contact name\\n';\n if (!$w('#ECNumbTwo').value) validationMessage += 'Participant 2 - Please enter emergency contact number\\n';\n if (!$w('#datePicker2').value) validationMessage += 'Participant 2 - Please enter DOB\\n';\n if (!$w('#groupExperience').value) validationMessage += 'Please provide a brief overview of your/groups expereince\\n';\n if (!$w('#courseAims').value) validationMessage += 'Please provide a brief aim of your trip/course\\n';\n $w('#validationMessageDetails').text = validationMessage;\n $w('#validationMessageDetails').expand();\n}\n \n\nif ($w('#participants').value === '1') {\n participant1()\n if ($w(\"#medicalsOne\").value && $w('#ECNameOne').value && $w('#datePicker1').value && $w('#ECNumbOne').value\n && $w('#groupExperience').value && $w('#courseAims').value) showOrder();\n }\n \n \n if ($w('#participants').value === '2'){\n participant2()\n if ($w(\"#medicalsOne\").value && $w('#ECNameOne').value && $w('#datePicker1').value && $w('#ECNumbOne').value \n && $w(\"#nameTwo\").value && $w('#contactNumbTwo').value && $w('#medicalsTwo').value && $w('#ECNameTwo').value && $w('#ECNumbTwo').value && $w('#datePicker2').value\n && $w('#groupExperience').value && $w('#courseAims').value) showOrder();\n }\n",
"userEmail": "[email protected]",
"creationTime": 1522689712251
},
{
"id": "5b9b4972-3876-5b9b-83cd-18ea0c992d54",
"title": "Copy text from a table",
"content": "Hi,\nI am using tables (from the Lists & Grids) that displays content from my databases, and i see that i cannot mark the text inside the table cells (live site) in order to copy paste it to another location.\n\nCan you please advise?\n\nThanks,\nRoy",
"userEmail": "[email protected]",
"creationTime": 1519544034671
},
{
"id": "51d21090-fe52-5d26-9485-3b41095a277b",
"title": "How to trigger a Video Download? Wix Video Player",
"content": "Dear Community,\ni would love to know how to trigger a video Download on Button Click.\nI have a database with videos inside connected to the wix video Player. \nI want to add a button wich trigges a video Download onClick. I know how it works with images but i can´t achieve this with videos.\n\nI know that wix Video supports \"Right Click -> Download Video\" but i need the button solution.\n\nIs there anything I´m missing? \n\nI Apriciate your help guys.",
"userEmail": "[email protected]",
"creationTime": 1543648613175
},
{
"id": "1bb37ada-963f-5e8f-b71c-7e41cd0bccca",
"title": "Advice on efficient code for dropdown population",
"content": " \nHi folks, Thanks to everyone that is so very helpful on this forum, it has helped my journey to be a little more competent with the coding on my site. \nI have been trying to expand my Wix code knowledge and increase the efficiency on the site, one area that seems to have lots of code across many pages (the same dropdowns use this code) I have around 3 for this particular input. I was wondering if it would be possible if anyone could change my thinking? Could I code it backend to reduce the code on the pages?\n\nThank you!\n\nwixData.query('dropdownPopulation')\n .ascending(\"courseName\")\n .find()\n .then(res => {\n let options = [{\n \"value\": '',\n 'label': 'All Courses'\n }];\n options.push(...res.items.map(title => {\n return {\n 'value': title.title,\n 'label': title.title\n };\n }));\n $w('#coursenamedropdown').options = options;\n });\n\n let opts = $w(\"#durationdropdown\").options;\n opts.unshift({\n 'value': '',\n 'label': 'All Durations'\n });\n $w(\"#durationdropdown\").options = opts;\n\n let opts2 = $w(\"#dropdownDifficulty\").options;\n opts2.unshift({\n 'value': '',\n 'label': 'All Grades'\n });\n $w(\"#dropdownDifficulty\").options = opts2;\n\n let opts3 = $w(\"#regionDropdown\").options;\n opts3.unshift({\n 'value': '',\n 'label': 'All Regions'\n });\n $w(\"#regionDropdown\").options = opts3;\n let opts4 = $w(\"#CourseAccomodationDropdown\").options;\n opts4.unshift({\n 'value': '',\n 'label': 'Anywhere will do'\n });\n $w(\"#CourseAccomodationDropdown\").options = opts4;\n\n }\n",
"userEmail": "[email protected]",
"creationTime": 1519366601733
},
{
"id": "279fcc64-00b3-51d6-9d09-0bae21348f0a",
"title": "- SOLVED - \nSpeed up page transitions via wixLocation",
"content": "Hi,\n\nI have noticed that when an onClick event is triggered within a repeater to direct to the new page this seems to be very slow, to the stage that I need to inform the user that something is happening by changing the label of the button. It takes around 2/3 second to direct to the new page.\n\nIs it possible to speed this up?\n$w('#datesButton').onClick((event) => {\n $w('#datesButton').label = \"Please Wait...\";\n wixLocation.to(\"/courses/\" + encodeURI(itemData.coursesCategory) + \"/\" + encodeURI(itemData.title) + \"#anchor1\");\n })\nThanks",
"userEmail": "[email protected]",
"creationTime": 1545741789829
},
{
"id": "1cb2187a-4a4d-59c1-b271-4e9a0e6cd763",
"title": "How secure is wix-data in the front end?",
"content": "I have a data repeater which shows some of the fields of a dataset. Each object in the dataset also contains fields which I would rather not share openly. (To be specific, I am showing driver profiles with first name only, but the data collection contains last name and contact information as well, and I don't want people to access this).\n\nIn the page code, I made some custom filters which respond to user input. \nCan someone access the full contents of the dataset through their browser developer tools? If so, how can I prevent it?\n\nEDIT: Right after writing this I tried and realised how easy it is to access all the info. So I'll refer to my second question again. How can I prevent it?",
"userEmail": "[email protected]",
"creationTime": 1532966785381
},
{
"id": "0155919f-eb32-5ac9-ba39-7c9a4ebc0870",
"title": "Drag and drop (fill in the blanks)",
"content": "\n \nDrag the write answer to the write place.\nis it possible in wix?",
"userEmail": "[email protected]",
"creationTime": 1544650353781
},
{
"id": "ef9e93d0-56f5-59cd-a0ba-908e507f29a4",
"title": "Fetch Post To External API",
"content": " How do you make a fetch post request with params to an external api ? ",
"userEmail": "[email protected]",
"creationTime": 1517287800450
},
{
"id": "0b2ad25a-e983-5b31-9e12-1e9d95d53051",
"title": "Embed HTML code directly (without iframe)",
"content": "I’m using PressPlay2 video player, and when I embed the code using the HTML element, my video doesn’t play correctly. The problem seems to be with how the code is embedded in the page - including the embed code as an html page hosted on filesusr.com and using an iframe to pull in that html page.\nIs there a different way to embed the video directly onto my wix site, rather than with the iframe method?\nHere’s one example of the code I’m trying to embed:\n<div id=\"ppdiv_2132813\" class=\"pp-video-container\" style=\"width: 100%;height: auto;\"></div><script type=\"text/javascript\" src=\"https://s3.amazonaws.com/press-play-v2/2127044/2132813/outer.js\"></script>",
"userEmail": "[email protected]",
"creationTime": 1522270479473
},
{
"id": "55311d95-da11-582f-bbe6-231cf309021a",
"title": "The googlemap API doesn't properly render when site is published",
"content": "I've used the google map component successfully for many months. I have a valid google API key that works to get me locations based on a street address which I then pass to the google map component and it has properly rendered the map -- until a few days ago. Everything looks fine in preview mode, but when I publish a site, it fails to work. What happens is that the map comes up and displays the location of the Wix Office. I know that google is returning the proper data because I can use it to open a new browser window with google.com showing the map. I have a published site that I haven't touched in months that had the maps suddenly stop working a few days ago. I've had to change the site to use an html component to get an updating google map as the google-map supplied via wix seems to have changed behavior.\n\nDid a recent upgrade to wix break/change something?\n\nThanks,\nAndy",
"userEmail": "[email protected]",
"creationTime": 1545440195251
},
{
"id": "e3cc65f2-36dd-56c6-9e8b-b9eae381c34c",
"title": "Google Maps Single Location Publish Issue",
"content": "Hello, I am creating a page with a dropdown to filter to a specific database item for a google map (and other info). Everything works great in preview...the map updates to a new location based on the dropdown value. In the published version, the map doesn't change locations when the dropdown selection changes. All the other items...address, image, etc...work fine in preview and publish.\n\nI know issues that pop up in publish but not preview are usually related to permissions, but the dataset loaded on the page is set to read-write, and the collection is set so anyone can make changes.\n\n \n\n\n//individual facilities code below\nlet selectedLongitude = \"\";\nlet selectedLatitude = \"\";\nexport function facilityDropdown_change(event, $w) {\n $w(\"#facilitiesdata\").onCurrentIndexChanged((index) => {\n let itemObj = $w(\"#facilitiesdata\").getCurrentItem();\n selectedLongitude = itemObj.longitude;\n selectedLatitude = itemObj.latitude;\n console.log(selectedLatitude)\n $w(\"#googleMaps1\").location = {\n \"latitude\": selectedLongitude,\n \"longitude\": selectedLatitude,\n };\n })\n}\nHelp!\n\n",
"userEmail": "[email protected]",
"creationTime": 1525836233894
},
{
"id": "503c4b7e-eaa1-516c-a6d1-e39a4e57255b",
"title": "Drop Down (Filling the blanks)",
"content": "\n \nresult like this.\nis it possible in wix?\nwhat can be helpful for this?",
"userEmail": "[email protected]",
"creationTime": 1516673281101
},
{
"id": "dc51515d-59c5-5fd4-8cc0-209b819f7f2c",
"title": "Cryptocurrency API help",
"content": "Hi,\n\nI am using a cryptocurrency API price tracker from: https://www.dunebook.com/create-a-cryptocurrency-price-update-website-using-wix-code/.\n\nThis current code allows me to pull the top 10 cryptocurrency prices from CoinMarketCap:\nexport function page1_viewportEnter(event, $w) {\ngetTopCoins().then(response => {\n$w('#coinList').text = \"Name: \" + response[0].name + \"t t\"\n+ \"Symbol: \" + response[0].symbol + \"t t\"\n+ \"Price (USD): \" + response[0].price_usd + \"n n\"\n+ \"Name: \" + response[1].name + \"t t\"\n+ \"Symbol: \" + response[1].symbol + \"t t\"\n+ \"Price (USD): \" + response[1].price_usd + \"n n\"\n+ \"Name: \" + response[2].name + \"t t\"\n+ \"Symbol: \" + response[2].symbol + \"t t\"\n+ \"Price (USD): \" + response[2].price_usd + \"n n\"\n+ \"Name: \" + response[3].name + \"t t\"\n+ \"Symbol: \" + response[3].symbol + \"t t\"\n+ \"Price (USD): \" + response[3].price_usd + \"n n\"\n+ \"Name: \" + response[4].name + \"t t\"\n+ \"Symbol: \" + response[4].symbol + \"t t\"\n+ \"Price (USD): \" + response[4].price_usd + \"n n\"\n+ \"Name: \" + response[5].name + \"t t\"\n+ \"Symbol: \" + response[5].symbol + \"t t\"\n+ \"Price (USD): \" + response[5].price_usd + \"n n\"\n+ \"Name: \" + response[6].name + \"t t\"\n+ \"Symbol: \" + response[6].symbol + \"t t\"\n+ \"Price (USD): \" + response[6].price_usd + \"n n\"\n+ \"Name: \" + response[7].name + \"t t\"\n+ \"Symbol: \" + response[7].symbol + \"t t\"\n+ \"Price (USD): \" + response[7].price_usd + \"n n\"\n+ \"Name: \" + response[8].name + \"t t\"\n+ \"Symbol: \" + response[8].symbol + \"t t\"\n+ \"Price (USD): \" + response[8].price_usd + \"n n\"\n+ \"Name: \" + response[9].name + \"t t\"\n+ \"Symbol: \" + response[9].symbol + \"t t\"\n+ \"Price (USD): \" + response[9].price_usd + \"n n\"\n});\n}\n\nApparently, the \"n n\" is supposed to create the new line, but this is the current output:\n\n \nThis is how it should look:\n\n \n\n\nDoes anyone have any idea on how I can separate the lines like shown in the above screenshot?\n\nThis is the link to my wix page:\nhttps://twistingknobs8.wixsite.com/mysite\n\nLet me know if I am missing any information and I am willing to jump on a audio/video call for a further deep dive!\n\nThanks,\nRobert",
"userEmail": "[email protected]",
"creationTime": 1545695709386
},
{
"id": "e9d4f000-d33e-504e-9442-5feafbfe3fb4",
"title": "Has anyone else´s custom login suddenly stopped working?",
"content": "Hi!\n\nSo I have used custom login and registration on my pages, which has been working fine, but suddenly today they give error 500.\n\nSo the code looks like this:\n\n \nimport wixUsers from 'wix-users';\nimport wixWindow from 'wix-window';\nimport wixLocation from 'wix-location';\n\n$w.onReady(function () {\n\n $w(\"#loginButton\").onClick( (event) => {\n let email = $w(\"#loginEmail\").value;\n let password = $w(\"#loginPassword\").value;\n wixUsers.login(email, password)\n .then(()=>{\n wixLocation.to(\"https://go-bros.wixsite.com/mysite-7\");\n })\n .catch((err) => {\n console.log(err); \n $w('#errortext').expand();\n $w('#errorbox').expand();\n } );\n }) \n})\n\n\nexport function resetPassword_click(event) {\n wixUsers.promptForgotPassword()\n .then( ( ) => {\n console.log(\"Password reset submitted\");\n } )\n}\n\n\nLike I said, it has been working fine before, but now on it gives unknown error 500\non line 15, which is the line with console.log(err);\n\nIs anyone else getting the same issue?\n\nSincerely,\n\nNiko",
"userEmail": "[email protected]",
"creationTime": 1521078362547
},
{
"id": "407e5a76-ef18-5754-b0b5-197d0d84786c",
"title": "Where are Next/Previous arrows? (page Not dynamic)",
"content": " Hello! I am trying to put together a simple art portfolio site for my daughter. I have four tabs, Paintings, Drawings, Photography, 3D, each of which is a main page with a bunch of thumbnails. When you click on a thumbnail, it takes you to a subpage with a full size image of that drawing. I cannot figure out how to move from one full size image to the next without having to return to the main page with thumbnails:((. I am using the Graphic Illustrator template from the Portfolios collection, and in that template, there are actually Previous and Next arrows on those subpages. But on each subpage, each arrow is an actual link to the next or previous page. That means that if I later add/remove images in the thumbnail gallery, that Next arrow's link is going to take the viewer to a wrong (old) image. There has to be a more advanced way than manually rewriting all those links! When I go to the Add menu in the Editor, I can add a button (btw, the Button menu does Not have arrows), but I am not prompted to choose an Action for it, it's just am image, to which I can manually attach a link:(. The Wix support person told me yesterday that if I just put the arrow there, it will automatically \"know\" where to point. And of course, if I copy/paste an arrow from the template, it does not know anything, it just brings the old link with it, and points to a random wrong page. I need to find a button with an arrow image on it, which, when put on a subpage, would generate a link to the Next/Previous subpage. Where does that functionality come from?? Thank you.",
"userEmail": "[email protected]",
"creationTime": 1515739687355
},
{
"id": "89398e76-823d-58d9-943e-82c12b9f2e8f",
"title": "Help with Fetch & Json",
"content": "My apologies in advance for what is likely a basic question. Fetch and Json are new to be, as is the Corvid development environment. I am working to send JSON login information to another server via a fetch post. I have a short function (below) to do that. It calls another function that builds an array of login credentials it retrieves from a collection. I have verified that the login credentials are returned correction. No errors are reported in the debugger from this code.\n\nHow do I get at the response from the server? Nothing I have tried seems to work. Below is my current attempt.\n\nexport async function TestCode(event) {\n let loginarray = await getLoginCredentials();\n console.log(loginarray); // I have verified login credtials coming back correctly.\n let url = [the url I am posting to];\n\n await fetch(url, {\n method: 'post', data: JSON.stringify({\n loginarray\n })\n .then((response) => {\n \n let txt = response.statusText;\n console.log(\"Response : \" + txt); // nothing gets to the log from here no errors in debugging\n }\n )\n}\n\n )\n}",
"userEmail": "[email protected]",
"creationTime": 1522202817835
},
{
"id": "52df3d84-23e8-526c-8d57-f7b37d8d8e0b",
"title": "Need help pulling subscriber information",
"content": "I'm looking to retrieve subscriber information from the Wix Paid Plans database using an external program. My current understanding is that this can be done--we just need to pull the subscription plan name and query an email address to find if it exists as a subscriber's email address. \n\nI understand that this resource will be of use, but hoping that the process can be elaborated on by a Wix guru: https://www.wix.com/corvid/reference/wix-users.User.html#getPricingPlans \n\nBut we're at a total loss on how to implement. Any help would be greatly appreciated!",
"userEmail": "[email protected]",
"creationTime": 1527197153572
},
{
"id": "4bdd5aee-6b1d-5d1e-8407-657e790b4933",
"title": "Click Show, Click Hide",
"content": "Hi!\nI'm new at this - have got different items/IDs to show or hide on a click. I get that.\n\nNow I would like to have it so that the same ID onclick event will toggle show/hide for the same $w(...\n\nIn other words: 1. Click on an icon - show an illustration. 2. Click on that same icon - hide that icon.\n\nCan anyone help? Many thanks!",
"userEmail": "[email protected]",
"creationTime": 1545523445645
},
{
"id": "03ab9ab4-55ed-5093-9e90-97987eb16c1a",
"title": "Member pages & personalized data",
"content": "Hello!\n\nI am very new to Corvid and I'm not sure this is possible but I'm hoping it is and that I can do this.\n\nI'm working on creating a site for a mock clinic project I'm working on with sample patients. The patients will be the members of the site. On each member's page I want to be able to have it where they see their personalized data and trends, but I am able to enter the data on the back end for each member as needed; they see the results of that work. \n\nI want for it to be where the member registers and this starts their page/account. But with each encounter, I enter any new stats and/or changes for them to view at their leisure. Also need to keep a notes section for each visit.\n\nI have no idea where to begin or if that is even possible within the confines of this app for Wix.\n\nCan someon point me in the right direction or offer suggestions on where to begin? Thank you so much!",
"userEmail": "[email protected]",
"creationTime": 1535399471704
},
{
"id": "88b686af-71ee-5b96-b7d5-527536b8895f",
"title": "Debugging scheduled jobs in corvid?",
"content": "Is there a way to debug scheduled jobs in Corvid?\n\nI have created a jobs.config according to the guidelines. I have tested the function I am calling and it works as expected when run manually. However, I cannot seem to get the function to run based on the schedule.\n\nThings I have tried:\n1. I have the \"Site Monitoring\" open over periods of time when the jobs should run. No logs for scheduled events.\n2. I have created a new collection called \"Scheduled Jobs\" which I write to at the beginning and the end of the scheduled job function I call. No updates to this table when called via schedule, but works when called manually.\n\nQuestions that may help me debug further:\n1. What permission level is a scheduled job given? (Although I do have all collection writes as \"SuppressAuth\", but the module itself is restricted to \"Admin\")\n2. Does jobs.config allow comments or do I need to delete all of those (i.e., is this pure json)? Sample file had some comments throughout and no errors in the wix editor with comments.\n\nAre there any other ways to see errors from the scheduled jobs in order to help me isolate the problem?\n\nExample entry in my jobs.config file:\n// -- 9 AM -- \n{ \n\"functionLocation\": \"updateRegistrations.updateLaRegistrations\", \"description\": \"9am Get latest registrations\", \n\"executionConfig\": { \n \"time\": \"13:00\" // mandatory, “hh:mm” format\n } \n},\n",
"userEmail": "[email protected]",
"creationTime": 1541434113855
},
{
"id": "620bc29d-7823-501d-a82a-f8cef3f1a2d6",
"title": "Corvid Example: Search a Database",
"content": "Hi everyone. Derived from the Wix Corvid example 'Search a Database', I am attempting to add query functionality to the filter function. I need the search query to filter off columns: Title, City, State, Services. The code below will only resolve queries from Title. Where am I going wrong??\n\nimport wixData from \"wix-data\";\n\n$w.onReady(() => {\n\tloadContinents();\n});\n\nlet lastFilterTitle;\nlet lastFilterContinent;\nlet lastFilterCity;\nlet debounceTimer;\n\nexport function iTitle_keyPress(event, $w) {\n\tif (debounceTimer) {\n\t\tclearTimeout(debounceTimer);\n\t\tdebounceTimer = undefined;\n\t}\n\tdebounceTimer = setTimeout(() => {\n\t\tfilter($w('#iTitle').value, lastFilterContinent, lastFilterCity); \n\t}, 500);\n}\n\nexport function iContinent_change(event, $w) {\n\tfilter(lastFilterTitle, $w('#iContinent').value);\n}\n\nfunction filter(title, continent, city) {\n\tif (lastFilterTitle !== title || lastFilterContinent !== continent || lastFilterCity !== city) {\n\t\tlet newFilter = wixData.filter();\n\t\tif (title)\n\t\t\tnewFilter = newFilter.contains('title', title);\n\t\tif (continent)\n\t\t\tnewFilter = newFilter.contains('state', continent);\n\t\tif (city)\n\t\t\tnewFilter = newFilter.contains('city', city);\n\t\t$w('#dataset1').setFilter(newFilter);\t\t\n\t\tlastFilterTitle = title; \n\t\tlastFilterContinent = continent;\n\t\tlastFilterCity = city;\n\t}\n}\n\nfunction loadContinents() {\n\twixData.query('States')\n\t .find()\n\t .then(res => {\n\t \tlet options = [{\"value\": '', \"label\": 'All States'}];\n\t \toptions.push(...res.items.map(continent => {\n\t \t\treturn {\"value\": continent.title, \"label\": continent.title};\n\t \t}));\n\t \t$w('#iContinent').options = options;\n\t });\n\n}\n\n",
"userEmail": "[email protected]",
"creationTime": 1535577758559
},
{
"id": "53b9aaa2-d100-5477-b962-7d9c121c219d",
"title": "How can I add price range to a product?",
"content": "Hello all!\n\nI run an e-commerce site where I need to show the minimum and maximum price of the products I sell. For each size, a different price is applied.\n\nThe problem is my customers commonly think the price of the product is the one that is shown before hand, that is, the minimum price. This frustrates them. :(\n\nI'd like to show the minimum price and maximum price for the products that have different variant prices on my store.\n\nCan someone help me please?\n\nE.g. \"$5.00 - $9.99\" or \"From $5.00\"",
"userEmail": "[email protected]",
"creationTime": 1522343729791
},
{
"id": "c65e6c90-6eb7-57da-bc6b-a98c9d6cefd2",
"title": "Custom 404 not working for dynamic page",
"content": "I recently created a dynamic page that lists categories from a Data Collection I created. I added a filter to this collection that works as expected. However, what is not working is when a value that does not meet the criteria of the filter is encountered, the page does not direct to the custom 404 I created. The custom 404 does in fact work for just junk urls, but not the dynamic page. \n\nThanks for any advice!",
"userEmail": "[email protected]",
"creationTime": 1542011637558
},
{
"id": "ea1c05ea-5e6c-5021-aaad-e0c710118812",
"title": "How to create a graph?",
"content": "Hello I like to create a line graph connected to database like this:\ncan anybody tell me how?\n \n",
"userEmail": "[email protected]",
"creationTime": 1539520952313
},
{
"id": "29dde2ac-af10-5aac-b42d-f2f662c900c6",
"title": "How can I filter a repeater's content based on ALL the values recorded in a dataset and not only on the actual value?",
"content": "So that if at least one value in the dataset's history corresponds it shows up the item.",
"userEmail": "[email protected]",
"creationTime": 1541693450438
},
{
"id": "368ff0ad-9dd9-5b22-8f2b-760fd1ac38df",
"title": "TIP about getting date ranges",
"content": "Hey\nJust wanted to share some functions I made for getting first and last days of a month and also monday and sunday of a week. Just send any date to the functions and they will return dates for you.\nfunction getFirstDay(d){ // Returns date of first day in month\n\tvar dt = new Date(d);\n\treturn new Date(dt.getFullYear(), dt.getMonth(), 1);\n}\nfunction getLastDay(d){ // Returns date of last day in month\n\tvar dt = new Date(d);\n\treturn new Date(dt.getFullYear(), dt.getMonth() + 1, 0);\n}\nfunction getMonday(d) { // Returns date of monday in the week of date you send to the function\n d = new Date(d);\n var day = d.getDay(),\n diff = d.getDate() - day + (day === 0 ? -7 : 0);\n return new Date(d.setDate(diff));\n}\n\nfunction getSunday(d) { // Returns date of sunday in the week of date you send to the function\n d = new Date(d);\n var day = d.getDay()-7,\n diff = d.getDate() - day;\n return new Date(d.setDate(diff));\n}\nThey are nice to have when you have to calculate range in dates before making a data collection query.",
"userEmail": "[email protected]",
"creationTime": 1537188608714
},
{
"id": "41d1a908-159b-5ac8-9028-f9937887fe0b",
"title": "Help with linking to a Dynamic pages anchor",
"content": "Hi guys as above im trying to link a button from one dynamic page to another dynamic pages anchor with code but as to match the members id , any ideas?\n\n\nIv'e tried this but doesnt work...\n\n\nexport function reviews_click(event) {\n \n wixLocation.to(`/anchor1/${wixUsers.currentUser.id}`); \n}",
"userEmail": "[email protected]",
"creationTime": 1540678685288
},
{
"id": "f8e6b72d-48c4-59d0-9112-73229e1812f6",
"title": "upload button",
"content": "Hello everyone,\nIs there a way to add/code an upload input/button, where the user can add several images, as apposed to only one?\nThank you\nTal\n",
"userEmail": "[email protected]",
"creationTime": 1534885631225
},
{
"id": "0ab75189-4a33-5b2a-8ed2-d86b8bde3965",
"title": "Updating specific fields",
"content": "Someone has asked recently (I don't remember who) how to update specific fields of a record without having to pull all the other fields to the front end.\nSo I've posted a simple (a little bit trivial) solution here:\n https://jonatandor35.wixsite.com/test/post/how-to-update-specific-fields ",
"userEmail": "[email protected]",
"creationTime": 1533693592458
},
{
"id": "9d1ff6ee-b537-5747-ad58-8663fbc1fc83",
"title": "Trouble adding LinkedIn Company Follow Button",
"content": "I'm having trouble adding a LinkedIn Company Follow button. I went to this LinkedIn page where it generates code for you to add this button to your site: https://developer.linkedin.com/plugins/follow-company\n\nThis is the code they gave me:\n\n<script src=\"//platform.linkedin.com/in.js\" type=\"text/javascript\"> lang: en_US</script>\n<script type=\"IN/FollowCompany\" data-id=\"27193937\"></script>\n\nBut I can't seem to add it to my Wix site.\n\nPlease help.\n\nThanks!\n\n-Noah",
"userEmail": "[email protected]",
"creationTime": 1546281365946
},
{
"id": "1e0205cc-e243-5f0c-95f9-b679c962bd7c",
"title": "Image Component in a Repeater is not updated when added via code",
"content": "The problem: I'm trying to get the image component placed inside a repeater to display the avatars images of each of the members it was loaded into the repeater array.\n\n \n$w(\"#myRepeter\").data = results.items; // This is an array resulting from the return of a query.\n$w(\"#myRepeter\").onItemReady(($item, itemData, index) => { \n\n$item(\"#imgMembro\").scr = itemData.picture;\n$item(\"#textName\").text = itemData.name; });\n\n}); \n\n\nNote that the content of $item(\"#imgMember\").scr is updated correctly with the content of itemData.picture\n\nWhy then are the images not updated on the repeater?",
"userEmail": "[email protected]",
"creationTime": 1538627351470
},
{
"id": "386784c4-971d-543b-b8c4-85716db5eaef",
"title": "Member Login Bar / Login Lightbox not working ",
"content": "Hi there, \n\nI have created a custom login lightbox so that when the members login bar (wix app) is clicked the lightbox appears, users input their email and password and click 'Login'. Once 'Login' is clicked they should be redirected to the Home page. \n\nThe issue is that everything works up until clicking the lightbox 'Login' button then nothing happens! No redirect and the user does not get logged in. The member login bar does not change to show the users profile picture and name and provide the drop down menu allowing them to log out. I am using registered information that I can see exists in the members database so I should be able to login with that information. \n\nI have copied the code I am using below - code was taken from a Code Queen Tutorial: https://www.youtube.com/watch?v=QbH8_eudjbE\n\nimport wixUsers from 'wix-users';\nimport wixLocation from 'wix-location';\nimport wixWindow from 'wix-window';\n\n$w.onReady(function () {\n $w(\"#forgotPassword\").onClick( (event) => {\n //wixWindow.lightbox.close()\n wixUsers.promptForgotPassword()\n .then( ( ) => {\n //\n } )\n .catch( (err) => {\n let errorMsg = err; //\"The user closed the forgot password dialog\"\n });\n });\n});\n\nexport function loginButton_click(event) {\n\n let email = $w(\"#email\").value;\n let password = $w(\"#password\").value;\n\n wixUsers.login(email, password)\n .then( () => {\n console.log(\"User is logged in\");\n wixLocation.to(\"/home\"); //Change the URL ending to whatever page you want to send the user to after they log in.\n } )\n .catch( (err) => {\n console.log(err);\n $w(\"#errorMessage\").expand(); // You can delete this line if you are not going to add an error message. Use a regular text element set to 'collapse on load' from the Properties Panel.\n } ); \n}",
"userEmail": "[email protected]",
"creationTime": 1524898478006
},
{
"id": "d813ca03-dfc0-5626-a43c-9d5cf8d2cb7e",
"title": "Does Wix have middleware?",
"content": "Sorry if this is a \"n00b\" question. I'm new to website building, HTML, web design, etc. I recently created a website for a housing community. One of the board members of the community asked what Middleware & Hosting service I used.\n\nI obviously knew about the Hosting and informed him of Wix. However, does Wix have middleware and/or can someone please explain to me what that is?\n\nThanks! \n",
"userEmail": "[email protected]",
"creationTime": 1539318395231
},
{
"id": "b7f0e9e6-06f2-5abc-b534-4664d1688d57",
"title": "How do you add Ads.txt to a Wix site?",
"content": "What it says in the title. More info on Ads.txt available here.\n> https://www.quora.com/Do-I-need-to-add-Ads-txt-to-my-website-when-I-am-only-running-AdSense\n>https://support.google.com/adsense/answer/7532444?hl=en\n\nBut yeah, I have the txt file written out, my problem now is putting it on my website and redirecting the adsense crawler to dantetranslation.com/ads.txt (which currently does not exist, I don't know how to create it and redirect it to my txt) \n",
"userEmail": "[email protected]",
"creationTime": 1528689573253
},
{
"id": "dd63145f-6340-5fa7-8619-2f44dbf63fd7",
"title": "help me",
"content": "pls i have been trying to run code on a dynamic page but it is not working, i need help pls. thanks",
"userEmail": "[email protected]",
"creationTime": 1514809791415
},
{
"id": "3680ee4f-b510-5b18-b1fe-bf6b2ff32770",
"title": "Adding Ads.txt file",
"content": "Hi, \n\nI have a new blog that's been up for a couple of months and would like to hook up an ads.txt file so that we can make a few cents to offset the work we're putting into this. I asked for help via the support team but they told me to vote for a feature that did this and sent me here.\n\nWe've had an ads.txt file provided to us which should be able to found here https://<my website>/ads.txt, the same place as https://<my website>/robots.txt (though this in internally generated).\n\nI'm at a loss for how to do this as I've looked for documentation on how and haven't come up with anything.\n\nCan anyone help and/or offer any insight on a direction to move in?\n\nMuch appreciated,\nJenny\n\n\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1520169499590
},
{
"id": "ef693c5d-295d-5c61-bf4b-8cb192bd863c",
"title": "Adding a graphic pie from a table or dataset",
"content": " \nHello,\nHow can I add a simple pie from table in a dynamic page ?\n\nThanks for your help\nRegards\nPierre-yves\n\nSuch as in Excel:\n\n \n\n\n",
"userEmail": "[email protected]",
"creationTime": 1534896832042
},
{
"id": "5d4c176e-9dce-5a2d-ba60-39cd5c420929",
"title": "Chart that displays content of a table",
"content": "Hi Wix Experts \n\nCan you please suggest a code example for creating a dynamic chart based on table data from collection?\nFor example - lest say that i have a table in my page that is connected to a collection, and that table has a filter that eventually presents 10 rows and few columns with data.\ni want those 10 items values (from a relevant column) to show in a \"dynamic\" line chart.\n\nThanks,\nRoy\n",
"userEmail": "[email protected]",
"creationTime": 1539318894644
},
{
"id": "96393b75-d21e-5dfc-88ff-5785f169d45f",
"title": "How to publish latest row of content for different fields?",
"content": "I'm asking my clients to upload 3 media files. And they can change/modify it whenever they want. So its a form with 3 Image/Video input fields. And I want them to upload as many times as they want but the form will only display the latest set of images/videos.\n\nEvery time they update, image1, image2 and image3.... it gets updated as a new row in the database. Problem is, how do I display latest set of image1, image2 and image3? Especially when clients update only 1 or 2 images at a time and not the entire row.\n\nExample:\nOn Day 1, client uploads image1, image 2 and image3. Form should display those 3 media files.\nOn Day2, client decides to update only image3. Database creates a new row where image1 and image2 are NULL/empty. Image3 has the new image. How can my form display image1 and image2 from Day1 and image3 from Day2?\nI've tried using sort and filter in dataset element but that filters the entire row. And not for individual media files.\n\n",
"userEmail": "[email protected]",
"creationTime": 1529330962390
},
{
"id": "8dd47375-6d4a-5f08-87fd-c2a583f1140c",
"title": "Is wix capable of creating a web socket?",
"content": " Hi guys, may I ask about is there any way to make changes to an already open web page (new tab or window), from another page (different tab/window)?\nI am doing a prototype for restaurant pos system, which I want to show customer view and cashier view at the same time on different screen (dual screen), and the changes in cashier view will affect customer view instantly. \nOr is there other way to achieve my objective? \n\nSome people are telling me about web socket, so I try to search for web socket in wix, but I did not find what I want.",
"userEmail": "[email protected]",
"creationTime": 1522220157320
},
{
"id": "fca020a1-523a-52f8-b3f4-a64d9f9223ec",
"title": "text-align in html for text",
"content": "I can't get the text to be aligned.\n$item('#text13').html = \"<span style=' text-align:center; color:\"+itemData.textColor+\"; font-size:16px; font-family:helvetica; font-weight:bold;'>\"+itemData.shortName+\"</span>\";\nEverything works fine, expect the align.",
"userEmail": "[email protected]",
"creationTime": 1518840308043
},
{
"id": "043fa86c-09a4-5053-bab8-91cd20bbb08c",
"title": "Notifications not working",
"content": "Hi I was working with wix crm backend notificatication and just stoped working.\n\nSee the code bellow\n\nCRM Backend code\n\nimport wixCrm from 'wix-crm-backend';\n\nexport function notifySiteContributors(body, titulo, acao, url) {\n wixCrm.notifications.notify(\n body,\n [\"Mobile\", \"Browser\", \"Dashboard\"], {\n \"title\": titulo,\n \"actionTitle\": acao,\n \"actionTarget\": { \"url\": url },\n \"recipients\": { \"role\": \"All_Contributors\" }\n })\n}\n\n\n\nfrontend code\n\nimport { notifySiteContributors } from 'backend/CRM';\n\n\nexport function botaofinalizar_click(event) {\n let itemObj = $w(\"#dataset3\").getCurrentItem();\n let os = itemObj.title.replace('/', '%2F')\n let link = 'www.otimicar.com/respostas-cotacao-pecas-/' + os\n $w('#text217').show()\n notifySiteContributors(\n String('OS ' + $w('#osText').text + ' ' + $w('#text207').text + ' ' + $w('#text208').text + ' ' + $w('#text214').text),\n String('Cotação de peça respondida por ' + $w('#text223').text),\n 'VEJA AGORA A RESPOSTA',\n link)\n}\n\nThe error =>\n\n\nUnhandled rejection Error: server responded with 400 - {\"message\":\"\",\"details\":{}} at handleServerError (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:162:11) at Object.<anonymous> (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/src/notifications/api.ts:109:9) at Generator.throw (<anonymous>) at rejected (/dynamic-modules/edm_root/2b595510-de9c-11e9-aaa2-279ac5c14f62/node_modules/@wix/wix-crm-backend/dist/src/notifications/api.js:5:65) at bound (domain.js:396:14) at runBound (domain.js:409:12) at tryCatcher (/elementory/node_modules/bluebird/js/main/util.js:26:23) at Promise._settlePromiseFromHandler (/elementory/node_modules/bluebird/js/main/promise.js:510:31) at Promise._settlePromiseAt (/elementory/node_modules/bluebird/js/main/promise.js:584:18) at Async._drainQueue (/elementory/node_modules/bluebird/js/main/async.js:128:12) at Async._drainQueues (/elementory/node_modules/bluebird/js/main/async.js:133:10) at Immediate.Async.drainQueues [as _onImmediate] (/elementory/node_modules/bluebird/js/main/async.js:15:14) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5) at process.topLevelDomainCallback (domain.js:121:23)\n\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1531424040238
},
{
"id": "a00ae130-aec3-56d4-a859-c0e9902ab122",
"title": "Table with images that show a popup of the image when clicked?",
"content": "Hi,\n\nI have a table connected to Dataset on a dynamic page. The table contains a column of images.\n\nI'm trying: when an image is clicked show a popup of the image.\n\nI did the following steps:\n\n1. Get the image data by creating an onCellSelect event, open a lightbox and send the image source to the lightbox. This code should be added to the page section where the table is added: \nimport wixWindow from 'wix-window';\n\nexport function table1_cellSelect(event, $w) {\n\t\tlet cellData = event.cellData; \n\t\t\n\t\t//the cell containes an image\n\t\tif (cellData.indexOf(\"image://\") !== -1){\n\t\t\twixWindow.openLightbox(\"lightbox\", cellData);\t\t\t\n\t\t}\n}\n2. Create a lightbox and add an image as a placeholder.\n3. Get the image source using the getContext function and change the image source to the received image data. This code should be added to the page section of the lightbox: \nimport wixWindow from 'wix-window';\n\n$w.onReady(function () {\n\t\n\tconst recievedImage = wixWindow.lightbox.getContext(); \n\t$w('#image1').src = recievedImage;\n});\n*events: table1 onClick - table1_cellSelect\n\nI'm getting the error:\nTypeError: Cannot read property 'indexOf' of undefined\n\nPlease help !",
"userEmail": "[email protected]",
"creationTime": 1523670611196
},
{
"id": "f94a986f-7861-55c6-af22-6b8d51131355",
"title": "blocked by CORS error",
"content": "All of the sudden I started getting:\nAccess to XMLHttpRequest at 'https://www.wix.com/_api/wix-laboratory-server/laboratory/conductAllInScope?scope=wix-form-builder' from origin 'https://www.mydoamin.com has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.\n\n\nAnd it's not limited to a specific site. I tested in 2 of my websites on different pages.\nAre you experiencing it too?",
"userEmail": "[email protected]",
"creationTime": 1536093540302
},
{
"id": "d2b196e0-162b-5c47-a10d-f17af0a10d58",
"title": "Button on my dynamic page linked to other page's anchor.",
"content": "I have a button on my dynamic page linked to an anchor on another page, I can link the button to the page's anchor but the button doesn't work. If the button from a regular page is linked to the page's anchor, it works. But the button from dynamic page linked to the page's anchor, it doesn't work.",
"userEmail": "[email protected]",
"creationTime": 1535305008366
},
{
"id": "b4d668ee-2b39-54ed-aea7-dec98953b433",
"title": "Collapsable menu not collapsing",
"content": "I've followed an example point for point to add a collapsable menu on my website - everything works except that it won't collapse - any ideas where i have gone wrong?\n\n \n \n\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1519178127140
},
{
"id": "6f02a640-8636-5ed5-a8c0-58a1277d987a",
"title": "Shortcut to move element in front of another element without attaching to the back element ?",
"content": "is there a keyboard shortcut to avoid attaching element to the back element ? \n\nfor example: move a text in front of a slideshow without attaching the text inside slideshow's slide so that the text will not move as slides move\n\ni've tried to hold ctrl while move, tried shift, tried alt\n\ncurrently i'm using keyboard arrows to move the front element to avoid attached to the back element, and sometimes using align tool in toolbar\n\nsorry for often posting questions, this because i l❤ve working with wix to build client's websites, and for someone who think this not a corvid related, i've enabled dev mode while doing this L🤣L ",
"userEmail": "[email protected]",
"creationTime": 1520477186513
},
{
"id": "01641862-0bab-51b6-9a06-dbbd83a76804",
"title": "I can't make Toggle Button \"Show More/Show Less\" \n",
"content": "hello everyone\nI can't make Toggle Button \"Show More/Show Less\" \n\nhttps://support.wix.com/en/article/creating-an-expandable-text-box-with-a-show-more-link-using-wix-code#working-with-dynamic-text\n\nI used code\nlet fullText;\nlet shortText;\n// For full API documentation, including code examples, visit https://wix.to/94BuAAs\n\n$w.onReady(function () {\n const shortTextLength = 40;\n $w(\"#dynamicDataset\").onReady(function () {\n fullText = $w('#dynamicDataset').getCurrentItem().description;\n // if no text to display, collapse the text element and the button\n if (!fullText) {\n $w('#text5').collapse();\n $w('#button13').collapse();\n } else {\n // if the text has fewer or the same number of characters as shortTextLength characters, display it as is and collapse the \"Show More\" button\n if (fullText.length <= shortTextLength) {\n $w('#text5').text = fullText;\n $w('#button13').collapse();\n } else {\n // create the shortened version of the text and display it in the text element\n shortText = fullText.substr(0, shortTextLength) + \"...\";\n $w('#text5').text = shortText;\n }\n }\n });\n\n});\n",
"userEmail": "[email protected]",
"creationTime": 1536389623692
},
{
"id": "e3915dcf-fb6a-55dd-89b9-6b995e803e4f",
"title": "after/beforeInsert hook not available ",
"content": "I'm trying to build a beforeInsert hook on a data collection of permission type \"Custom Use\", however, it seems as if this lifecycle hook is not available on this permissions type. I have all of the other lifecycle hooks available, just not this one. \n\nIs there anyway to have this hook type available for these data collections?",
"userEmail": "[email protected]",
"creationTime": 1529076014646
},
{
"id": "c9140d28-0e40-5402-ac40-19335d20bd8a",
"title": "Collapsing strip column's bug ?",
"content": "in editor preview, collapsing left side / previous column does makes the right side / next column goes to the left, but in live site it's not, is it a bug ?",
"userEmail": "[email protected]",
"creationTime": 1521795531709
},
{
"id": "22a67301-b552-553e-bc5c-4f9944d53785",
"title": "Contact Form Webhooks",
"content": "Hi Guys,\nI am an integrator and have many clients that use Wix. The issue im encountering is that there is no simple way to grab a contact form submission and send the data via post to an endpoint.\nI went through the documentation but couldnt find anything remotely close to what I am looking for.\nWould appreciate some guidance here if possible :).\n",
"userEmail": "[email protected]",
"creationTime": 1529027943340
},
{
"id": "4ab440ce-19a4-50be-a1a9-f1dbfe1372bd",
"title": "Dynamic pages link not working...Please help",
"content": "Hello everyone.\nIf some one can help me please, I'm really frustrated with this problem, I tried all bit and pieces but nothing work out, if any one of you can help me will be deeply appreciated.\n\nThis is regarding the dynamic page link not working in live environment.\nId values in sandbox /Live collection mode is not matching with the id values showing in the URL of live environment and hence the result is \"404 - Page not found\"\nI have sync with Live data, Publish the Live date in collection databases , but all this doesn't resolve my issue.\nI have used the below code to direct to Dyanamic page in page\n \nwixLocation.to(`/members-signup/update/${wixUsers.currentUser.id}`);\n } )\n\nMany Thanks\nSushant Malviya\n\n\n\n\n\n\n",
"userEmail": "[email protected]",
"creationTime": 1535940371235
},
{
"id": "cf889f81-8d69-5a47-9b7f-d281241f6d36",
"title": "Javascript is displayed on wrong place",
"content": "The Javascript is displayed over my head, but of course it should be among them.\nIt´s strange, because there are the adjustment options \"Head\", \"Body-Start\" and \"Body-End\", but the setting has no effect.\n\n<script src=\"https://dev.fgimmobilien.de/js/api.js\" type=\"text/javascript\" id=\"fgIframe\" data-api=\"17eb108a288eb5545b481d5a46a6116a\"></script>\n\nI need help thank you!\n\nBest regards\nLudwig Holzapfel",
"userEmail": "[email protected]",
"creationTime": 1529716145391
},