Vorbly Code | WIX CODE CLEAR REPEATER DATA

Vorbly <Code>

CODING MADE EASY WITH VORBLY

WIX CODE CLEAR REPEATER DATA

Need to reset your Wix Repeater? This tutorial will show you how to clear your Wix Repeater data without deleting information from your database. We will provide you with the webpage elements and sample codes required to implement this feature.

THE DEMO

1/2

THE ELEMENTS

The Page

Repeater Elements (#repeater1)

  • Product Name: #text1

  • Product Color: #text2

  • Quantity: #text3

​​

Delete Button: #delete

The Database

Create a database: Products (dataset1)

Recommended fields:

  • Product: name

  • Customization : color

  • Quantity: quantity

THE CODE

Page Code

export function delete_click(event) {

    $w('#repeater1').data=[]

}

COMMENTS

I'm a paragraph. Click here to add your own text and edit me. It's easy.

WEB DESIGN & DEVELOPMENT SOLUTIONS

GET PROFESSIONAL HELP