
內容簡介
此外掛新增設定頁面和 REST API 端點以取得容易理解的人性化和電腦友好的欄位名稱。
詳細文件請見field-helper-for-gravity-forms.brilliantplugins.info。
如果您正在尋找一種方法在 WordPress 網站和 FileMaker 之間匯入 Gravity Forms 輸入,請使用此外掛。
使用 Gravity Form 的拖放介面來建立幾乎任何表單,並使用此外掛將該表單的輸入資料快速匯入到您的 FileMaker 解決方案中,通過fmFlare。
用法
建立 Gravity Forms API 金鑰。
在每個表單中,進入欄位幫手設定頁面,設定所需欄位的適當名稱。
將/json附加到Gravity Forms相關的表單或輸入端點中以獲取JSON欄位資料。
取得所有輸入:https://your-site.com/wp-json/gf/v2/entries/json/
取得特定輸入:https://your-site.com/wp-json/gf/v2/entries/<entry_id>/json/
從特定表單取得所有輸入:https://your-site.com/wp-json/gf/v2/forms/<form_id>/json/
從特定表單中取得特定輸入:https://your-site.com/wp-json/gf/v2/forms/<form_id>/entries/<entry_id>/json/
如果您需要在 PHP 中使用友好的欄位名稱(例如使用gform_after_submission鉤子),請使用以下範例:
// 假設 $entry 是一個表單輸入。
// 您可以使用 GFAPI :: get_entry($id)按 ID 檢索輸入。
$entry_with_friendly_names = GF_Field_Helper_Common :: replace_field_names($entry);
外掛標籤
開發者團隊
② 後台搜尋「Field Helper for Gravity Forms」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Adds a settings page and REST API endpoint to retrieve human- and computer-friendly field names.
See field-helper-for-gravity-forms.brilliantplugins.info for more documentation.
Looking to import Gravity Forms entries from your WordPress website into FileMaker?
Create nearly any form with Gravity Form’s drag-and-drop interface, and use this plugin to quickly import that form’s entry data to your FileMaker solution via fmFlare.
Usage
Create a Gravity Forms API key.
On each form, go to the Field Helper settings tab and set the friendly names for the fields you need.
Append /json to Gravity Forms’ form- or entry-related endpoints to get JSON field data.
Retrieve all entries: https://your-site.com/wp-json/gf/v2/entries/json/
Retrieve a specific entry: https://your-site.com/wp-json/gf/v2/entries/
Retrieve all entries from a specific form: https://your-site.com/wp-json/gf/v2/forms/
Retrieve a specific entry from a specific form: https://your-site.com/wp-json/gf/v2/forms/
If you need to use the friendly field names in PHP (using the gform_after_submission hook, for instance), follow this example:
// Assuming $entry is a single form entry.
// You can retrieve an entry by id using GFAPI::get_entry( $id );
$entry_with_friendly_names = GF_Field_Helper_Common::replace_field_names( $entry );
