1. Access Morf webhook URLs
You’ll need the staging and production webhook URLs from the workflow that should receive Morf form submissions. How to access your webhook URL:- Navigate to your Feathery-triggered workflow and open build mode.
- Click the trigger node.
- Open the “Connect” section.
- Copy the Webhook URL. It will start with
https://api.morf.healthcare/webhooks/
2. Register Morf webhooks in Feathery
In your form, go to Integrations > Webhooks:- Click Add destination.
- Set Send data when to
Any user data is received (e.g. step submission). - Check Include hidden fields in events.
- Set URL → your production webhook URL.
- Set Test URL → your staging webhook URL.
3. Add hidden fields
In the form, go to Settings > Data Tracking > Edit Hidden Fields and add:morf_org_idmorf_webhook_url(if using Morf scheduling UI)appt_type_id(if using Morf scheduling UI)- Any other organization-dependent variables
4. Conditionally set hidden field values
Use a custom logic rule to initialize your hidden fields based on whether the form is running in test mode (staging) or live mode (production).- Go to Logic > Create New Logic Rule.
- Name your rule
Set Environment Variables. - Configure the trigger:
- Event trigger: Form Step is Loaded
- Step trigger: the first step in your form
- Go to Advanced Logic > Edit Code and add the code below, replacing the placeholder values with your own org IDs, appointment type IDs, and webhook URLs.
View code
View code
