It is often useful to know and record which users are visiting which pages and when on your website. This code example shows you how to record and track your users page visits for later analysis, as is done for WixCodeBank.
It is often useful or necessary to verify that an email address provided by members of your website both exists and is owned by them. Emailing verified members also helps to protect your reputation as a sender. You can use this verification status to limit access to parts of your website. This code shows you how to verify the email address of your members by sending the member a verification code, which they need to enter into a verification input field on your website.
It is often helpful to break up large lists into conditional lists when requiring users to choose from options in a dropdown menu. Learn how to dynamically filter a repeater first by a high level category (such as region) and then by a low level category (such as town or location) underlying the high level category already chosen.
It is often helpful to break up large lists into conditional lists when requiring users to choose options from a dropdown menu. For example, when a city input is required from a dropdown list - it is easier for the user to pick their region first and then be presented a shorter list of locations within the selected region to choose from.
The following code shows you how to implement a wildcard search and dropdown filter to a repeater, either separately or used in conjunction with each other. It shows you how to apply a wildcard search to more than one field in your collection at the same time e.g. search both text title and text body.
Learn how to integrate custom payment values via PayPal using HTML iFrame and test whether a successful payment has been made. This is the PayPal payment functionality used throughout WixCodeBank.com to unlock pages of code.
Learn how to delete data in a single collection using code. Sometimes there is a need to delete all or specific the data in a single collection, and it is too time consuming to do so manually one row at a time.
Currently there is no proper way to automatically refresh dynamic fields on a page after the data is updated by the user. For example when a user updates their profile, the updated information does not display until the page is manually refreshed. This code presents a hack for refreshing dynamic fields after an update.
Create a login/sign-up for members (users) of your website, including a customisable members profile page to capture and display relevant member information. The same functionality can be used to set up member dashboards for additional member actions or transactions.
Create unique reference numbers for each item in your dynamic collection using loops. Unique reference numbers are an easy way for you or your website users to search or locate a specific item in your collection. This method is not impacted if records are subsequently removed from the collection.
Unique Reference Number for Collection Items using Loops
This code will show you how to add a page views counter which iterates by one each time a website visitor navigates to and views each dynamic page. You can then use the number of views for sorting your dynamic pages for the most popular using a repeater or you can display it back to your website visitors as an engagement indicator.
Views Counter for Dynamic Pages
Can't find what you are looking for? - please contact us! Perhaps it will be the next thing we add to the WixCodeBank.