Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating Advanced Forms with Gravity Forms (Wor...

Creating Advanced Forms with Gravity Forms (WordCamp San José 2018)

Gravity Forms is a robust plugin allowing you to create forms of any kind for your WordPress site. We will walkthrough some of the most powerful features that often go unnoticed including conditional logic, dynamic population, merge tags and more.

Travis Lopes

July 21, 2018
Tweet

More Decks by Travis Lopes

Other Decks in Technology

Transcript

  1. What is Gravity Forms? Gravity Forms is the Easiest Tool

    to create
 Advanced Forms for your WordPress site Email Notifications File Uploads Multi-Page Forms Save and Continue Payment Forms Limit & Schedule Forms Post Creation Calculations
  2. Exclusive Offer 
 for WordCamp San José 2018 Attendees GET

    A FREE LICENSE
 using your name and email at gravityforms.com/wcsj
  3. What is Dynamic Population? Dynamic Population can happen via… Allows

    for fields to be pre-propulated from external values Shortcode Query String Hooks
  4. Resize This Window Dynamic Population via Query String Enable dynamic

    population in Advance field settings
 
 Provide a parameter name for field.

  5. Resize This Window Dynamic Population via Query String http://example.com/?why=project Enable

    dynamic population in Advance field settings
 
 Provide a parameter name for field
 Add Dynamic population value in URL
  6. Resize This Window Dynamic Population via Query String http://example.com/?why=project Enable

    dynamic population in Advance field settings
 
 Provide a parameter name for field
 Add Dynamic population value in URL
  7. Dynamic Population via Shortcode Resize This Window Enable dynamic population

    in Advance field settings Add Dynamic population value 
 in shortcode Provide a parameter name for field
  8. Dynamic Population via Hooks Enable dynamic population in Advance field

    settings add_filter( ‘gform_field_value', ‘my_custom_population_function’, 10, 3 ); function my_custom_population_function( $value, $field, $name ) { return ‘dynamic value’; } Provide a parameter name for field. Add in Hook Code:
  9. Dynamic Population via Hooks Enable dynamic population in Advance field

    settings add_filter( ‘gform_field_value_why', ‘my_custom_population_function’, 10, 3 ); function my_custom_population_function( $value, $field, $name ) { return ‘dynamic value’; } Provide a parameter name for field Add in Hook Code:
  10. Where can I use Conditional Logic? Visibility Actions Confirmations Field

    Section Page Submit Button Notifications Export Entries Feeds
  11. Basic Merge Tags Display logged in user’s email address {user:user_email}

    Display date in dd/mm/yyyy format {date_dmy} HTTP referer {referer} Display logged in user’s first name {user:first_name}
  12. Add Ons You can also extend Gravity Forms using a

    vast array of Add-Ons Email Integrations Payment Third Party Feature