How to Delete an Item From a Data Collection with WiX Code | WiX Data API - .remove() Method | Velo

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 15

  • @JamesGrant-n1q
    @JamesGrant-n1q Год назад +1

    Great video! I would love to add in a refresh line of code to refresh my lightbox (where dataset is displayed) once somehting is clicked to be removed

    • @thewixwiz
      @thewixwiz  Год назад

      Thanks! The refresh method would depend on how the data is being displayed.
      You can check this out:
      www.wix.com/velo/reference/wix-dataset/dataset/refresh

  • @Peacegramm
    @Peacegramm 5 месяцев назад

    Great video! I did everything as you did but I dont get a response from my button, also cant get an error message. What could be the problem?

    • @thewixwiz
      @thewixwiz  5 месяцев назад

      Hey, thanks so much for your comment and support!
      It is hard to know what the issue is without taking a look at your code. There are several ways we can offer help -
      1. Our free forum: thewixwiz.com.com/forum - I try to address questions there at least once a week. Please support your question with code snippets, screenshots, and even video.
      2. Developer services. You can schedule a consult at thewixwiz.com/book-online.
      I appreciate your support and thanks for watching!

  • @normanrvargas
    @normanrvargas 8 месяцев назад

    Great video, How can I add a confirmation modal, to ask the user if they are sure about the delete action? to avoid them deleting something by mistake

    • @thewixwiz
      @thewixwiz  8 месяцев назад

      Thanks! You can utilize a lightbox with a button and run the actual delete code from the lightbox.

  • @armerjosephbautista2197
    @armerjosephbautista2197 Год назад +1

    Hello. I've tried every step on the video, but it seems the code won't work/run when I preview it. Whenever I click the button assigned for deletion, nothing happens. Nothing gets deleted and I don't get to see the code run.

    • @thewixwiz
      @thewixwiz  Год назад

      Hey, thanks for commenting and sharing about your project!
      I offer viewers two options for getting assistance with their projects:
      1. Our free forum: thewixwiz.com.com/forum - I try to address questions there at least once a week. Please support your question with code snippets, screenshots, and even video.
      2. Offering my services as a developer. You can schedule a consult at thewixwiz.com/book-online.
      I appreciate your support and thanks for watching!

  • @GiangNguyen-fo7yk
    @GiangNguyen-fo7yk Год назад +1

    Hi ,thanks for the video , am looking to delete a particular field in a collection, how can I be able to achieve that

    • @thewixwiz
      @thewixwiz  Год назад

      Hi, fields can only be deleted from the content manager.

  • @beeno5397
    @beeno5397 Год назад

    Nice video, I need to know what you mean by "#peopleRepeater", I didn't get that part

    • @thewixwiz
      @thewixwiz  Год назад +1

      Thanks! That is the id of the repeater element.

    • @beeno5397
      @beeno5397 Год назад

      @@thewixwiz Now I've run across another problem. I want to put the delete button in a lightbox, but I get an error because the repeater is on one page and the lightbox is on another. the error said "An element with the ID '#repeater1' does not exist on this page. Select another element and view or edit its ID in the Properties & Events panel."

  • @BN-zn7pu
    @BN-zn7pu Год назад

    I have a wix website and I want to remove the code that's been added by a unknown person , but I can't get permission to do anything, I am the site owner

    • @thewixwiz
      @thewixwiz  Год назад

      As the site owner you have all possible permissions. Are you sure dev mode is on in the editor?