
內容簡介
這個外掛可自動將 Gravity Forms 的資料匯入到 NationBuilder 中。當在已設定的表單中有新的資料時,此外掛將在您的 Nation 中建立支持者 (或更新他們,如果他們已存在)。
請注意: 您應該只在支援 HTTPS 的網站上執行此外掛。它使用 OAuth2 框架與 NationBuilder 的 API 進行身分驗證,並需要 HTTPS。
請按照以下步驟開始:
使用 NationBuilder 的 API 進行身分驗證
如果尚未安裝 Gravity Forms,請安裝版本 1.9.16 或更新版本。
前往 Gravity Forms 設定頁面,並找到「NationBuilder」子頁面。
複製此頁面上提供的回撥 URL,在下一步中需要使用。
在另一個視窗中,登錄到 NationBuilder 中並註冊新應用程式: https://YOUR_NATION_SLUG.nationbuilder.com/admin/apps/new
將客戶 ID、客戶端密碼和 Nation slug 儲存到 Gravity Forms 設定頁面中。
儲存後重新載入頁面,即可顯示一個連結。您必須點擊此連結以完成 OAuth 處理; 它會重新導向您回到設定頁面。
設置 Gravity Forms Feed
前往單一表單的設定頁面,並找到「NationBuilder」區塊。如果不存在,請建立一個 Feed。
為 Feed 命名,例如「NationBuilder Feed」。
根據頁面上的說明,將表格字段映射到 NationBuilder 自定義字段。
新增逗號分隔的標籤清單,這些標籤將添加到此 Feed 的每個人物檔案中。您可以通過點擊字段旁邊的小下拉框,從表單中包含值。
您可以選擇性地設置此 Feed 執行的條件。例如,您可以設置僅當表單中的選項勾選時才運行。您還可以使用條件選擇和多個 Feed 來控制如何向一個人物檔案中添加標籤。
完成上述步驟後,您的表格應映射到 NationBuilder。要檢查是否已成功將表單輸入推送到 NationBuilder,請在 Gravity Forms 管理區域中的個別輸入畫面上檢查「備註」部分。
此外掛是使用 WebDevStudios 建立的 generator-plugin-wp 工具開發的。
外掛標籤
開發者團隊
② 後台搜尋「Importer for Gravity Forms and NationBuilder」→ 直接安裝(推薦)
原文外掛簡介
Automatically import entries from Gravity Forms into NationBuilder. For each entry on a configured form, this plugin will create a supporter (or update them, if they already existed) in your nation.
Note: You should only run this plugin on sites that support HTTPS. It uses the OAuth2 framework, which requires HTTPS, for authenticating with NationBuilder’s API.
Follow these steps to get started:
Authenticating with the NationBuilder API
Install Gravity Forms if you haven’t already. You should be using version 1.9.16 or later.
Navigate to the Gravity Forms settings page and find the “NationBuilder” subpage.
Copy the Callback URL provided on this page – you’ll need it for the next step.
In a separate window, register a new app inside NationBuilder: https://YOUR_NATION_SLUG.nationbuilder.com/admin/apps/new
Save your Client ID, Client Secret, and nation slug on the Gravity Forms settings page.
When the page reloads after saving, it will display a link. You must click this link to complete the OAuth process; it will redirect you back to the settings page.
Setting up Gravity Forms feeds
Navigate to a single form’s settings page, and find the “NationBuilder” section. Create a feed if there are none.
Give the feed a name – this can be something generic like “NationBuilder feed”.
Follow the instructions on the page for mapping the form fields to the NationBuilder custom fields.
Add a comma separated list of tags which will be added to each person for this feed. You can include values from the form by clicking the small dropdown box next to the field.
Optionally, set a condition for when this feed should run. For example, you can set it to only run when an opt-in checkbox on the form is checked. You can also use conditional logic and multiple feeds to control how tags are added to a person.
Once the above steps are complete, your form(s) should be mapped to NationBuilder. To check if a form entry was successfully pushed to NationBuilder, check the “notes” section on the individual entry screen in the Gravity Forms admin area.
This plugin was built using the generator-plugin-wp tool built by WebDevStudios.
