top of page

Forum Posts

Andrew Kennedy
May 08, 2023
In Velo Pro Discussion
Hello! When a user submits a form, I'd like to also include an img src and text from an element on the page. I think I can accomplish this by saving the img src and text from the dynamic page into local storage, and then passing that into a hidden field which would get submitted along with the user input. But maybe there is an easier way - maybe dynamically submitting the form and having it also include the img src of imageX and text from elementY as part of the submitted data. If anyone can point me into the right direction, I would really appreciate it!
0
2
21
Andrew Kennedy
Nov 23, 2022
In Coding with Velo
Please see attached image for what I mean. This is a "fake" social media site, and I'd like every circle in the vertical menu to represent a post and anchor to that post. However, this is a dynamic page layout which reads from a dataset so the amount of posts displayed in the repeater varies. Is there a way to generate this vertical menu dynamically? Thanks in advance!
Anchor Menu & Repeater - How? content media
0
3
35
Andrew Kennedy
May 13, 2022
In Coding with Velo
I'd like to create give users the ability to create a Wordcloud using Wix, and have only a vague idea of how this can be accomplished. For example, users from various locations enter words into an input text field, those words get placed inside a Dataset, and then a code is run which counts the number of times the same word appears. I know so far this should be possible, but then is there any way to set up a repeater to display the words and then dynamically increase the font size of the words which have the most entries? I'd like to avoid iFrames or embedding a word cloud from somewhere else.
0
1
155
Andrew Kennedy
Nov 01, 2021
In Coding with Velo
Is there a way to submit data into a collection which creates multiple rows for each input selection? Each row would have the same fullName and emailAddress values, but varying values for the sessionName. I've attached a screenshot of the result I'd want. Thank you! This is what I'm using so far, and I figured I can just duplicate the "toInsert" function but I can't :( export function button1_click(event) { let toInsert = { "fullName": $w('#input1').value, "emailAddress": $w('#input2').value, "sessionName": $w('#input3').value, "sessionName": $w('#input4').value, "sessionName": $w('#input5').value, }; wixData.insert("CVENTRegistration", toInsert) .then( (results) => { let item = results; //see item below } ) .catch( (err) => { let errorMsg = err; } ); }
Separating input values into rows in the dataset. content media
0
4
36
Andrew Kennedy
Oct 26, 2021
In Coding with Velo
What I'm trying to do is have users type in their email address, hit submit, and have a URL display, but limit the number of people who get that URL at 25. If it is over 25, show them a different URL, and so on. Basically capping access to each URL at 25 users. I figured I can do this with a dataset and retrieve the URL value through a repeater, but I'm having issues on how to "cap" the submissions to 25.
0
1
47
Andrew Kennedy
Jun 03, 2021
In Coding with Velo
Hello! I'm using a method of allowing users to add gallery items to favorites using the method here: https://www.wix.com/velo/forum/coding-with-velo/how-to-make-a-favorites-page-for-users Using the following code which "saves" the item into a different Dataset which I've named "Favorites" import wixData from 'wix-data'; export function button1_click(event) { const item = $w('#dynamicDataset').getCurrentItem(); wixData.insert('Projects1', { item }); } The issue is that no matter which button I press in the repeater, the the first item is always saved. Please see attached screen shots.
getCurrentItem - Issue with Reference Fields content media
0
0
26
Andrew Kennedy
Mar 19, 2021
In Coding with Velo
I have a repeater set up that is being filtered by dropdowns. Is it possible to insert a sentence like below above the repeater showing the filtered dataset values? "Hello! Showing results in the <Category> for the month of <Month>" I realize that I can do separate text boxes, but the spacing will look off. Thanks so much.
0
0
7
Andrew Kennedy
Mar 17, 2021
In Coding with Velo
The problem I have is that the user's selection is visible to anyone who visits the site (it just takes the latest entry in the Dataset table). Is there a way to have the user's selection be isolated to that user only - without them becoming a member. Thanks!
0
8
73
Andrew Kennedy
Dec 18, 2020
In Coding with Velo
I've been looking for an answer for this, and haven't found anything - My Dataset has all of the times for EST. The site members save their preferred time zone in their custom member profile. Is it possible to alter the time shown in the repeater based on the time zone they selected? I was thinking of finding javascript code that subtracts hours from the text element. If anyone has had luck with this please let me know! It's been driving me crazy.
1
2
149
Andrew Kennedy
Dec 12, 2020
In Coding with Velo
Hey Guys - I've been looking at reference fields and custom profile pages, but I feel like I am doing something wrong. I can't grasp how reference fields work since it has me choosing specific user emails as a reference, and not the whole column. Basically - I have users logging in through Single Sign On (external login page) - so I cannot do a custom sign-up/sign in page in Wix. I need to be able to manually add extra parameters to the profile through another dataset or some other way. Their role at the company for example. Can someone point me into the right direction?
1
9
118
Andrew Kennedy
Nov 16, 2020
In Coding with Velo
Hi All - Someone wrote the code below for us, and then vanished. When I click on the submit button, it does nothing, but I see "Submitted Successfully" (#text131) and "an Error Has Occurred" (#text130) text boxes when editing, but neither come up on the published site. Does anyone have an idea of what code is missing to get this to work? I am assuming that it needs to check if the user is already registered, and then redirect to another page. Thanks so much (if anyone will actually read this, haha) import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; import wixWindow from 'wix-window'; import wixData from 'wix-data'; $w.onReady(function () { }); export function button3_click(event) { let fname = $w("#input2").value; let lname = $w("#input6").value; let email = $w("#input4").value; let password = $w("#input5").value; let toInsert = { "name": fname, "email": email, "region": $w("#dropdown1").value, "roles": $w("#dropdown3").value, "group": $w("#dropdown2").value } if (($w("#input2").valid) && ($w("#input6").valid) && ($w("#dropdown1").value !== '') && ($w("#dropdown2").value !== '') && (($w("#dropdown3").value !== ''))) { wixUsers.register(email, password, { "contactInfo": { "firstName": fname, "lastName": lname, } }) .then(async(results)=> { await wixData.insert('endo-items', toInsert); $w("#text130").collapse(); $w("#text131").expand(); wixLocation.to("/Home") } ) .catch( (err) =>{ console.log(err); $w("#text130").text = "Please Enter your email or password correctly"; $w("#text130").expand(); } ); } else if (fname.length < 1) { $w("#text130").text = "Please Enter your first name"; $w("#text130").expand(); } else if (lname.length < 1) { $w("#text130").text = "Please Enter your last name"; $w("#text130").expand(); } else if ($w("#dropdown1").value === '') { $w("#text130").text = "Please Enter your region"; $w("#text130").expand(); } else if ($w("#dropdown2").value === '') { $w("#text130").text = "Please Enter your group"; $w("#text130").expand(); } else if ($w("#dropdown3").value === '') { $w("#text130").text = "Please Enter your role"; $w("#text130").expand(); } }
0
0
17
Andrew Kennedy
Oct 28, 2020
In Coding with Velo
I've created a form that a site member can fill out - based on those selections, how can I filter data displayed in a repeater? It is a event schedule and depending on the user's role and location they should see some sessions but not others. I've tried this so many ways, but cannot get it right.
0
1
37
Andrew Kennedy
Oct 28, 2020
In Coding with Velo
If I have a time and date coming from a dataset to a repeater, is it possible to adjust the time to match the user's location? Does it do that automatically?
0
2
89
Andrew Kennedy
Oct 28, 2020
In Coding with Velo
Filtering a repeater using dropdown works, but when I filter using another dataset with the same values as the dropdown had, the repeater content doesn't show up at all. The primary dataset that the repeater is reading from contains a column with a combination of these values in each row - "AAS, CCD, AAA" The filter is set up to read from a dataset that contains either "AAS" "CCD" or "AAA" and the rule is set to "contains".
0
0
20
Andrew Kennedy
Oct 28, 2020
In Coding with Velo
I know that there are a million ways to do things in Wix, but I went down a rabbit hole and now can't get out. I tried this two ways: Option 1 - I have added two dropdown fields in the custom sign up form. The dropdown selections get saved into "Contacts" Problem - how do I transfer Contacts data to a Content Manager so I can use it as a filter? Option 2 - I have the user submitting the two dropdowns after they've signed up. The data goes inside a Content Manager, but I can't seem to figure out how to link the private member data and the Content Manager containing the two dropdown selections using the reference field. If a user uses the dropdowns to submit the editable Content Manager it just keeps creating new rows, but it needs to update instead. My goal is for the user to select their region and role (upon sign up or later), and then based on those selections, filter a bunch of repeaters on various pages of the site... a site with custom content based on region and role, basically.
0
0
12

Andrew Kennedy

More actions
bottom of page