{% import '_includes/forms' as forms %} {% import 'verbb-base/_macros' as macros %} {% set displayName = integration.displayName() %} {% set instructions %} ### Step 1. Connect to the {name} API 1. Go to the {name} application manager, and login to your account. 1. In the top main menu, click on **My Applications**. 1. Click on the **New Application** button at top-right. 1. Enter a name in the popup window, and leave all other settings as-is. Click **Save**. 1. Click on the **Edit** button for the app you've created. 1. In the **Redirect URI** field, enter the value from the **Redirect URI** field below. 1. Copy the **API Key** from {name} and paste in the **Client ID** field below. 1. Click the **Generate Secret** button, copy the **App Secret** and paste it into the **Client Secret** field below. ### Step 2. Test Connection 1. Save this integration. 1. Click on the **Connect** button in the right-hand sidebar. 1. You‘ll be redirected to {name}, where you must approve Formie to access your {name} account. {% endset %}
{{ instructions | t('formie', { name: displayName }) | md }}
{{ macros.proxyField(fieldVariables, 'textField', { readonly: true, label: 'Redirect URI' | t('formie'), instructions: 'Use this URI when setting up your {name} app.' | t('formie'), value: integration.getRedirectUri(), }) }} {% if not craft.app.config.general.allowAdminChanges %} {{ 'Integration settings can only be editable on an environment with `allowAdminChanges` enabled.' | t('formie') | md(inlineOnly=true) }} {% endif %} {{ macros.proxyField(fieldVariables, 'autosuggestField', { label: 'Client ID' | t('formie'), instructions: 'Enter your {name} {label} here.' | t('formie'), name: 'clientId', required: true, suggestEnvVars: true, value: integration.settings.clientId ?? '', warning: macros.configWarning('clientId', 'formie'), errors: integration.getErrors('clientId'), }) }} {{ macros.proxyField(fieldVariables, 'autosuggestField', { label: 'Client Secret' | t('formie'), instructions: 'Enter your {name} {label} here.' | t('formie'), name: 'clientSecret', required: true, suggestEnvVars: true, value: integration.settings.clientSecret ?? '', warning: macros.configWarning('clientSecret', 'formie'), errors: integration.getErrors('clientSecret'), }) }}