Add value to Field in Dataset?

Hi Everyone,

I’m new to using any sort of code in design but have got a fairly decent grasp on creating and using Datasets.

I’ve been scouring the internet to teach myself how to build the following:

Step 1:
I am building a digital course, once a user completes a section or module I would like them to:
(I don’t have a preference, I simply want them to be able to click to mark that they’ve completed.)

  1. checkbox

  2. on-click changing vector art

  3. Button

Step 2:
I want that selection to populate a dataset and have converted to value, let’s say 10.
(This would repeat for all sections, ongoing)

Step 3:
I would like to be able to total all of the user’s points i.e.
Section 1, marked complete = 10
Section 2 marked complete = 10
Section 3 marked complete = 10
Section 4 NOT marked complete = 0 of 10
Section 5 NOT marked complete = 0 of 10

This user has 30 of 50 total points

Step 4:
Display on leaderboard page, in a format similar to this:
https://www.youtube.com/watch?v=ysSPlpYbK0U

I am aware of how to connect datasets to elements on pages, I am totally lost on how to build steps 1-3, possibly 4 if it’s not done through a dataset.

I hope this is as clear as possible and I sincerely appreciate your advice as I embark on building this!

Leigh

Hi Group,

I am including screenshots of where I am at since this post, could still use a hand:

Basically, I would like to have multiple pages all with a toggle, switch, or even simple vector that the user can click and it will submit a number to a data-field in that dataset.

If they do it again on the next page, I want that data set to now be the sum of those two numbers… and so on.