How to make the perfect Christmas wish list with GravityView

How to Build the Perfect Christmas Wish List With GravityView

Written by Casey Burridge Marketing Coordinator at GravityKit since 2021, Casey is an expert on Gravity Forms, WordPress, and marketing.

Last updated:

Categories GravityView

Tags , ,

Have you noticed that itโ€™s starting to look a lot like Christmas? ๐ŸŽ„

Itโ€™s that time of the year when the weather starts to cool down, the trees bare their branches, and the sound of Jingle Bells fills every store. These are all signs that the biggest gift-giving holiday of the year is about to begin. 

And you know what that means… itโ€™s time to start writing your Christmas wish list! ๐ŸŽ…

In this post, weโ€™ll show you how to create an online Christmas wish list that you can share with your friends and family using Gravity Forms and GravityView!

So what are you waiting for? Grab a cup of hot chocolate (Floatyโ€™s got the perfect recipe) and letโ€™s dive in!

Sneak Peek

Hereโ€™s a sneak peek at what weโ€™re going to build in this tutorial:

A Christmas wish list built with Gravity Forms and GravityView

And if you click on the โ€œAdd item to listโ€ button, a popup opens up with a form where you can add new gifts to your list!

Clicking on the "Add item to list" button to open a form popup

Pretty cool, right?

What Is a Christmas Wish List?

A Christmas โ€œwish listโ€ or โ€œwishlistโ€ is a list of items that a person hopes to receive as gifts for Christmas! The goal of a wish list is to open up a clear channel of communication between the gift receiver and gift giver.

This ensures that the gift receiver gets exactly what they want, and reduces stress for the gift giver so they donโ€™t have to guess at what to buy. In some cultures, people exchange wish lists prior to Christmas.

People use wish lists and gift registries for other occasions too, including weddings, baby showers, housewarmings, and charity drives.

How Do I Make a Wishlist on WordPress?

There are different ways to create wishlists on WordPress but one of the best ways is by using Gravity Forms and GravityView. In this tutorial, weโ€™ll show you how to save new gifts using Gravity Forms and display them in a list on the front end using GravityView.

Creating the Gift Form 

Okay, letโ€™s start building our online Christmas wish list! The first step is to create a form that allows us to add new items to our list.

To create a new Gravity Form, weโ€™ll hover over Forms and click on New Form. Next, weโ€™ll give our form a name and click Create New Form.

Creating a new form in Gravity Forms

Now we can start building our form using Gravity Formsโ€™ handy drag and drop interface! Weโ€™ll keep things simple by adding the following 5 fields:

  • What would you like? (Single Line Text field)
  • Website link (Website field)
  • Image (File Upload field)
  • Note (Single Line Text field)
  • Price (Single Line Text field)

Hereโ€™s what our form looks like if we preview it:

The next step is to embed our form inside a popup and create a trigger so that it appears when we click on the โ€œAdd item to listโ€ button. To do this, weโ€™ll need to install the free โ€œPopup Makerโ€ plugin.

Creating the Form Popup

To install Popup Maker, weโ€™ll hover over Plugins and click Add New. Next, weโ€™ll search for โ€œPopup Makerโ€ and click โ€œInstallโ€. As you can see, with a five-star rating and over 700,000+ installations, itโ€™s a popular plugin!

The Popup Maker plugin for WordPress with over 4,000 reviews and over 700,000 active installations.

After installing and activating Popup Maker, weโ€™ll create a new popup by hovering over Popup Maker in the left-hand menu and clicking Create Popup. Weโ€™ll give our new popup a name and then weโ€™ll add our form to the content area using the Gravity Forms embed shortcode.

The Gravity Forms embed shortcode

Now we need to add a trigger to our popup so that it opens on click. To do this, weโ€™ll scroll down to the Popup Settings, select Triggers on the left, and click Add New Trigger.

The 'Add New trigger' button under Popup Settings

Now under where it says โ€œWhat kind of trigger do you want?โ€ weโ€™ll select โ€œClick Openโ€ and click Add. Finally, weโ€™ll add a CSS selector class. Weโ€™ll need to add this class to our button to ensure our popup opens when we click on it.

CSS selector class

The next step is to create a new View that allows us to display gifts on the front end.

Building the List View

๐Ÿ“ GravityView is an add-on for Gravity Forms that allows you to build powerful web apps with your form data. New to GravityView? See what GravityView can do for you.

To create a new View, weโ€™ll hover over Views and click New View. Weโ€™ll give our View a name and select our new Gravity Form as the Data Source. Finally, weโ€™ll choose List as the View Type.

The GravityView List layout

Now we can configure the Multiple Entries Layout using GravityViewโ€™s drag and drop builder! Weโ€™ll start by removing all the widgets (as we wonโ€™t need these). Next, weโ€™ll add the โ€œWhat would you like?โ€ field to the Listing Title section.

The GravityView listing title

Now weโ€™ll add the Image field to the Image block, and the remaining fields to the Other Fields section, like this:

The GravityView view editor

Finally, weโ€™ll add a link to the Edit Entry page in the right footer area. Clicking on this link will allow us to edit or delete items on our list.

the Link to Edit Entry field in the right footer area

Okay, weโ€™re finished configuring our View! Now all thatโ€™s left to do is put it all together on a single page.

Putting It All Together

To create a new page weโ€™ll hover over Pages and click Add New. First, weโ€™ll add a picture of Santa Clause at the top along with some information about our list. Next, weโ€™ll add a button by clicking on the โ€˜+โ€™ icon and selecting the Gutenberg Button module.

This will be our โ€œAdd item to listโ€ button that opens our form popup when clicked. To ensure this works, weโ€™ll need to add the CSS class we created in a previous step.

Finally, weโ€™ll add our View by copying and pasting the GravityView embed shortcode into a Gutenberg Shortcode module. 

The GravityView shortcode inside a WordPress shortcode module

Thatโ€™s it! When youโ€™re done, save your page by clicking โ€œPublishโ€. 

Adding Gifts to Your Wish List

When youโ€™re browsing the internet and spot something that you want to add to your Christmas wish list (like this awesome WordPress merch), all you need to do is follow the steps below.

Head over to your online Christmas list page and click the โ€œAdd new item to listโ€ button to bring up the list form. Fill in the title of the product, the website URL, and the price. You can also add an image and a note if you want to. Now click Submit.

Gravity Forms Christmas wish list form

As you can see, the item is now added to your wish list and visible on the front end! 

GravityView Christmas wish list

Now that your Christmas wish list registry is up and running, you can start sharing it with your family and friends.

Editing and Deleting Gift Entries

To edit or remove an item on your wish list, all you need to do is click on the โ€œEdit Entryโ€ link at the bottom right of the entry. 

The Edit Entry link

This will take you through to the Edit Entry page where you can make changes to the entry or remove it from your list.

The GravityView Edit Entry page where you can edit entries from the front end

Yep, itโ€™s as easy as that!

Sharing Your Christmas Wish List With Family and Friends

To share your Christmas wish list with your friends and family, all you need to do is send them the URL of the page where your View is embedded.

If youโ€™d like to prevent anyone else from adding items to your list, you can move the wish list form to a separate page or simply update your form settings to require a user login.

Require user to be logged in

Start Assembling Your Christmas Wish List Today!

As the gift-giving holiday approaches, itโ€™s time to start thinking about your Christmas wish list. Keeping a wish list is the perfect way to ensure that your friends and family know exactly what to buy you.

In this post, we showed you how to build your own online Christmas wish list using Gravity Forms and GravityView. Now, what are you waiting for? Create a Christmas wish list and start filling it with all those precious Christmas items! ๐ŸŽ„

Join Our Newsletter!๐Ÿ“ง๐Ÿ™Œ

โœ… Helpful Gravity Forms content straight to your inbox

โœ… Be the first to hear about new updates and releases