Form Types
Set Up Webhooks
- Navigate to Integrations > Webhooks.
- Set the URL to your Morf production webhook URL. You can find this in a Feathery production workflow trigger under Connect. It will start with
https://api.morf.healthcare/webhooks/ - Set the Test URL to your Morf staging webhook URL. You can find this in a Feathery staging workflow trigger under Connect. It will also start with
https://api.morf.healthcare/webhooks/
Working with Promotable Forms
1. Create an Environment logic rule
This logic rule lets you dynamically set variables and field options based on whether the form is running in test or live mode. Configure the rule to trigger when the first step is loaded.View code
View code
2. Create a promotable copy
Go to Settings > Form Promotion > Create Promotable Copy.3. Configure the new promotable form
A new form will be created with a(staging) suffix. This is your promotable form.
- Update the trigger in your staging Morf workflow to execute for events from the promotable form.
- In most cases, only use the test form in your promotable form. Test form webhooks are sent to Morf staging; live form webhooks are sent to Morf production.
4. Make changes in your promotable form
Use the Environment logic rule to dynamically update field options. UseField.options to specify which values appear in staging vs. production.
Example: Testing a new option for the symptoms field
View code
View code
5. Promote your changes
When you’re ready and all changes have been published, click the dropdown next to Publish > Promote Form. Before promoting, you’ll see all linked fields — changes to these fields will be pushed to your original live form.6. After promoting
You’ll have three forms:- Live form — with recently promoted changes
- Promotable form — your staging version
- Rollback copy — a snapshot of your live form prior to the promotion (suffix
Rollback)
