How to resolve the issue of duplicated input fields in a Zapier CLI app

I’m currently developing a Zapier application using the command line interface and encountering a strange issue. Certain input fields appear multiple times in the user interface. I’ve checked the input field definitions in my creation module and they are listed properly under operation.inputFields. However, I’m experiencing duplication; for instance, one field presents as “Donation Amount” and another simply as “Amount”. The “Donation Amount” seems to retrieve the correct data.

Here’s a look at my code in the creation module:

const createDonation = {
  key: 'donation',
  noun: 'Donation',
  display: {
    label: 'Create Donation',
    description: 'Creates a new donation record'
  },
  operation: {
    inputFields: [
      {
        key: 'amount',
        label: 'Donation Amount',
        type: 'number',
        required: true
      },
      {
        key: 'project_id',
        label: 'Project ID',
        type: 'string'
      }
    ]
  }
};

The response from the API is structured like this:

{
  "amount": 100,
  "project_id": "proj_123",
  "status": "completed"
}

I have attempted to remove the input fields from operation.inputFields, but the duplicate fields still appear. Additionally, I’ve tried deleting the noun attribute, as I’ve noticed that “Donation” is prefixed on all duplicated fields.

What else could I investigate to resolve this issue?

This duplication usually means you’ve got field definition conflicts somewhere in your code. Check if you’re defining input fields in multiple places - triggers, searches, or other operations using the same field keys. Another common issue is having both static inputFields and dynamic field functions returning overlapping keys. I’d search your entire project for ‘amount’ and ‘project_id’ to find other definitions. Also check for legacy field definitions in index.js or other modules that might be merging with your current ones. The fact that one shows ‘Donation Amount’ and another just ‘Amount’ tells me two different field sources are running at the same time.

maybe try clearing your browser cache too, that sometimes helps. also if you’ve made changes to your code, ensure it’s properly pushed. sometimes things glitch out if older samples are stuck around, just a thought!

Sounds like schema caching. Zapier caches your app’s schema definitions, so old field configs stick around even after you change the code. Run zapier push then zapier test to force a refresh. If that doesn’t fix it, look for dynamic input fields elsewhere in your code - they might be conflicting with your static ones. I’ve seen this happen when you have multiple field definitions using the same key in different parts of the app. Also check your app versions in the developer dashboard. Switching between versions can cause field duplication until the cache clears.