[email protected]
WordPress Development
  • Home
  • Blog
  • Pricing
  • Urbex
  • FAQ
    • Guest Blogging
    • Cookie Policy
    • Privacy Policy
  • Contact
  • Codeable
  • Recommended WordPress Hosting
    • Kinsta
    • Cloudways
    • WordPress.com
    • Bluehost
Select Page

Gravity Forms Create Front End Login / Register / Edit account – PART 1

by Rafał Gicgier | Sep 24, 2014 | Gravity Forms, Gravity Series Login, Plugin Development | 0 comments

Ever wanted to create a simple Gravity Forms user login page without the need of investing into add-ons?
This tutorial will move you through the process of a solid Front End process.

Part 1 – creating a simple login page

First let’s go ahead and set up a simple form with two fields.

  1. Username (please assign username class to the field)
  2. Password (please assign password class to the field and make sure the password checkbox is checked)

gf username

gf password

 

 

 

 

 

 

 

 

 

 

 

 

Once set up with the two embed the form anywhere in the page likewise:

login-embed

Now, let’s setup two hooks, that will login the user:

  1. Runs once the form is submitted
  2. Runs during the form validation

1. Gform after submission hook

(source)

This hook fires after the form was submitted and the whole data was validate, we’ll bind it to the form which have just created.

2. Gform field validation hook

(source)

This hook fires during the form submission process and iterates over every field.

Once these two were set up (placed anywhere in the functions.php file) we can go ahead and test the form embeded to a page. Let’s do some testing:

form-login

I tried logging in with the wrong password and I failed! This means that the validation is working properly. Let’s go ahead and login with the real credentials – boom I tested it and logged in successfully.

Part 2

Part 3

Need Help with Gravity Forms Related Task?

Codeable is the only WordPress freelancer platform. We match customers to the best WordPress experts. We help customers solve any WordPress problem.

HIRE A CERTIFIED CODEABLE EXPERT

Categories

Sponsored Content

The Ultimate Managed Hosting Platform



WooCommerce

COPYRIGHT

Copyright © 2022 WP doin – Rafał Gicgier

INVOICING:
WP DOIN – RAFAŁ GICGIER
Łódź, ul.Henryka Sienkiewicza,
nr 85/87, lok. XI, 8, 90-057
PL7251927749
[email protected]

Recommended ENTERPRISE Hosting

By browsing through the site and filling in the Contact Forms you agree to our PRIVACY POLICY.
Moreover WP doin website uses COOKIES to improve your experience. We assume you're ok with this, but you can opt-out if you wish.
ACCEPT REJECT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT