[email protected]
0 Items
WordPress Development
  • Home
  • Blog
  • Pricing
  • FAQ
    • Guest Blogging
    • Privacy Policy
    • Cookie Policy
  • Contact
  • AI Content
    • ChatGPT website – Wonderlust Chronicles
    • AI generated images
  • Digital Art (Shop)
    • Cart
    • Checkout
    • My account
    • Lost password
  • Other
    • Urbex
    • My Codeable Profile
    • Cloudways Cloud Hosting
    • Kinsta Enterprise Hosting
    • WordPress.com Hosting & Extra
    • Cyberfolks Polish Hosting
Select Page

Home » Blog » Gravity Forms » Gravity Forms Create Front End Login / Register / Edit account – PART 3

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

by Rafał Gicgier | Oct 22, 2014 | Gravity Forms, Gravity Series Login, Plugin Development | 0 comments

Table of Contents

  • Part 3 – creating a simple edit account page
  • Gform validation hooks
  • Gform pre submission hook
  • Gfrom field value hooks
  • Reference links:

Welcome to the third and last part of the Gravity Forms Front End Login / Register / Edit account series.

In this tutorial we’ll cover the edit account page setup. You can find the related tutorials at: 1st, 2nd.

Part 3 – creating a simple edit account page

Unlike previously the form we’re going to create will be slightly different. First we need to output some data on the form, which will use Gravity Forms dynamic population. This will be bound to the currently logged in user for which we’ll load the data.

Let’s go ahead and create it. We need the following fields:

  1. Email (with the email CSS class assigned, and dynamic population variable set to email)
  2. Old Password (with the old-pass CSS class assigned)
  3. New Password (with the new-pass CSS class assigned)
  4. Repeat Password (with the repeat-pass CSS class assigned)
  5. First Name (with the fname CSS class assigned, and dynamic population variable set to fname)

This form will let us change the associated email address, the password (for which we’ll need to provide a valid current password – safety precaution) and change our First Name.

Gform validation hooks

With all the fields filled we need to validate them before submitting the form. In our case this only applies to the old password, since all other fields need not be validate.

It’s worth nothing the comments added to the functions. We’re using a simple trick here – we’re assigning field validation to a specific form field and then comparing it’s value with a different form – which has a specific CSS class assigned to it!

Gform pre submission hook

Gfrom field value hooks

Now, we need to make sure, that the fields actually list the data provided by the user. Since we’re accessing a predefined values, there are already functions for doing so. Let’s make usage of the global variable $current_user.

Reference links:

http://codex.wordpress.org/Function_Reference/get_currentuserinfo

http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

http://www.gravityhelp.com/documentation/page/Gform_pre_submission

http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook

Related Posts:

  • Gravity Forms Password Recovery Tutorial
    Gravity Forms Password Recovery Tutorial
    Gravity Forms
  • Gravity Forms Create Front End Login / Register / Edit account - PART 2
    Gravity Forms Create Front End Login / Register / Edit…
    Gravity Forms
  • WordPress application development ACF & Gravity Forms
    WordPress application development ACF & Gravity Forms
    ACF
  • Gravity Forms Create Front End Login / Register / Edit account - PART 1
    Gravity Forms Create Front End Login / Register / Edit…
    Gravity Forms
  • WooCommerce Gravity Forms Add-ons custom field
    WooCommerce Gravity Forms Add-ons custom field
    Filters
  • Proper approach to WordPress plugin development - based of Mr Poster Mockup plugin
    Proper approach to WordPress plugin development - based of…
    Plugin Development

COPYRIGHT

Copyright © 2023 WP doin – Rafał Gicgier

WP DOIN – RAFAŁ GICGIER
Expert WordPress developer
Cybersecurity Specialist
For Hire
[email protected]

action advanced custom fields ai artificial intelligence bethesda builder chatGPT Cloudflare custom widget Divi divi builder elementor enqueue_script filter gaming gravity forms hack hardening malware map microsoft nightcafe openAI page Plugin review safety scanners security series s starfield Tutorial widget wp_localize_script xbox

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 REJECTCookie settings
Privacy & Cookies Policy

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.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearSet by the GDPR Cookie Consent plugin, this cookie records the user consent for the cookies in the "Advertisement" category.
cookielawinfo-checkbox-analytics1 yearSet by the GDPR Cookie Consent plugin, this cookie records the user consent for the cookies in the "Analytics" category.
cookielawinfo-checkbox-functional1 yearThe GDPR Cookie Consent plugin sets the cookie to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary1 yearSet by the GDPR Cookie Consent plugin, this cookie records the user consent for the cookies in the "Necessary" category.
cookielawinfo-checkbox-others1 yearSet by the GDPR Cookie Consent plugin, this cookie stores user consent for cookies in the category "Others".
cookielawinfo-checkbox-performance1 yearSet by the GDPR Cookie Consent plugin, this cookie stores the user consent for cookies in the category "Performance".
CookieLawInfoConsent1 yearCookieYes sets this cookie to record the default button state of the corresponding category and the status of CCPA. It works only in coordination with the primary cookie.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
CookieDurationDescription
__cf_bm30 minutesCloudflare set the cookie to support Cloudflare Bot Management.
aet-dismissneverDisqus sets this cookie for the functionality of the website’s comment system.
badges-messageneverDisqus sets this cookie for the functionality of the website’s comment system.
drafts.queueneverDisqus sets this cookie for the functionality of the website’s comment system.
submitted_posts_cacheneverDisqus sets this cookie for the functionality of the website’s comment system.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
CookieDurationDescription
__jid30 minutesDisqus sets this cookie to remember the user's Disqus login credentials across websites that use Disqus.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
__gads1 year 24 daysGoogle sets this cookie under the DoubleClick domain, tracks the number of times users see an advert, measures the campaign's success, and calculates its revenue. This cookie can only be read from the domain they are currently on and will not track any data while they are browsing other sites.
_ga1 year 1 month 4 daysGoogle Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.
_ga_*1 year 1 month 4 daysGoogle Analytics sets this cookie to store and count page views.
_gh_sesssessionGitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.
CONSENT2 yearsYouTube sets this cookie via embedded YouTube videos and registers anonymous statistical data.
disqus_unique1 yearSet to record internal statistics for anonymous visitors.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
__gpi1 year 24 daysGoogle Ads Service uses this cookie to collect information about from multiple websites for retargeting ads.
DSID1 hourThis cookie is set by DoubleClick to note the user's specific user identity. It contains a hashed/encrypted unique ID.
IDE1 year 24 daysGoogle DoubleClick IDE cookies store information about how the user uses the website to present them with relevant ads according to the user profile.
test_cookie15 minutesdoubleclick.net sets this cookie to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysYouTube sets this cookie to measure bandwidth, determining whether the user gets the new or old player interface.
YSCsessionYoutube sets this cookie to track the views of embedded videos on Youtube pages.
yt-remote-connected-devicesneverYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.
yt-remote-device-idneverYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.
yt.innertube::nextIdneverYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.
yt.innertube::requestsneverYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
_octo1 yearNo description available.
cf_clearance1 yearDescription is currently not available.
logged_in1 yearNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo