How do i make a like and a dislike button on dynamic pages

Hello, i have a problem with making a like/dislike button i already searched through google but i just cant find what i need. can anyone help me please. i also cant really code (Im making a video platfrom)

You can use the ratings element and connect it to your dynamic page.

Thanks for your awnser but im trying to make a like and dislike button. im making a video platfrom

So you are going to need some coding. You’ll need the elements (the buttons, the dynamic page and etc.), capture the clicks through .onClick() methods, you’ll need to save the stored clicks on a field in your dateset.

Thank you. im gonna try that

So if you want to do it in custom own mode, then you will need the following…

  1. You have already the MOCKUP-SETUP → 2x Buttons


2) You will need a → DATABASE → where you will store all your LIKES & DISLIKES.

  1. Everything will work inside a REPEATER ($item) !!! → REPEATER needed.
    Your REPEATER will be connected with your DATABASE (either by CODE or by a -----> DATASET (READ & WRITE).

  2. For your purposes coding is eventually even not neccessary (all could be done by using the wix-given stuff out of the box).

  3. Your DATABASE will have two COLUMNS (DATAFIELDS) → Likes (ID=likes) & Dislikes (ID=dislikes).

  4. If you will need code though, then you will need this one…
    https://www.wix.com/velo/reference/$w/repeater/onitemready

  5. Placing an onClick()-Event into the onItemReady()-part of the REPEATER.

Now try to reconstruct all that.:wink:

@russian-dima Thank you for your awnser, ill try to do that