Linux 软件免费装
Banner图

Pods Gravity Forms Add-On

开发者 sc0ttkclark
jimtrue
naomicbush
gravityplus
更新时间 2024年3月29日 23:37
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 6.5
版权: GPLv2 or later
版权网址: 版权信息

标签

gravity forms pods form mapping

下载

1.0 1.1 1.2 1.4 1.4.1 1.4.2 1.3 1.4.3 1.4.4 1.4.5 1.5.0

详情介绍:

Special thanks to Rocketgenius for their sponsorship support and to Naomi C. Bush for her help in the initial add-on UI work. WP-CLI Command for Syncing Entries This add-on provides the ability to sync entries from a Form Submission and Entry Edit screen. To bulk sync all entries even prior to setting up a Pods Gravity Form Feed, you can run a WP-CLI command. Example 1: Sync all entries for Form 123 first active Pod feed wp pods-gf sync --form=123 Example 2: Sync all entries for Form 123 using a specific feed (even if it is inactive) wp pods-gf sync --form=123 --feed=2 Mapping GF List Fields to a Pods Relationship field You can map a GF List field to a Relationship field related to another Pod. Using the below examples you can customize how the automatic mapping works. By default, the list columns will map to the pod fields with the same labels. Example 1: Customize what columns map to which Related Pod fields for Form ID 1, Field ID 2 Customizing a list field row can be done by using the pods_gf_field_columns_mapping filter, which has Form ID and Field ID variations (pods_gf_field_columns_mapping_{form_id} and pods_gf_field_columns_mapping_{form_id}_{field_id}). ` add_filter( 'pods_gf_field_columns_mapping_1_2', 'my_columns_mapping', 10, 4 ); /** $columns[0] = 'first_field'; $columns[1] = 'second_field'; $columns[2] = 'third_field'; return $columns; } ` Example 2: Customize a List row for Form ID 1, Field ID 2 Customizing a list field row can be done by using the pods_gf_field_column_row filter, which has Form ID and Field ID variations (pods_gf_field_column_row_{form_id} and pods_gf_field_column_row_{form_id}_{field_id}). ` add_filter( 'pods_gf_field_column_row_1_2', 'my_column_row_override', 10, 6 ); /** // Update certain row fields based on the value of specific column. if ( ! empty( $row['user_relationship_field'] ) ) { $user = get_userdata( (int) $row['user'] ); // Set the post_title to match the User display name. if ( $user && ! is_wp_error( $user ) ) { $row['post_title'] = $user->display_name; } } return $row; } `

屏幕截图:

  • In the Pods Admin, create your Pods and Pod Fields: Pod Edit Screen
  • Create your Gravity Form that will be used to create a Pod item
  • Form Settings->Pods menu
  • Pods feed page
  • Map form fields to Pod fields
  • Example form
  • New Pod item created from form submission
  • Form entries page showing Pod ID

更新日志:

1.5.0 - March 29th, 2024 ALSO: Pods Gravity Forms 2.0 is still in development and it brings complete compatibility with the latest Gravity Forms releases. We could use your support to help it get over the finish line this year. Please consider donating to the Pods project to help us get there more quickly. 1.4.5 - July 22nd, 2022 1.4.4 - October 6th, 2021 1.4.3 - March 26th, 2020 1.4.2 - March 2nd, 2020 1.4.1 - October 16th, 2018 1.4 - October 16th, 2018