Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

72
Views
Zapier static dropdown displays message regarding loading more options

I have this code for Zapier search action:

      {
        key: 'field0',
        label: 'Field 0',
        required: true,
        choices: { field1: 'Field1', field2: 'Field2' },
        altersDynamicFields: true,
      },
      function (z, bundle) {
        if (bundle.inputData['field0'] === 'field1') {
          return [{ 
            key: 'field1',  
            type: 'string', 
            required: true, 
            label: 'Field1' 
          }];
        }
        if (bundle.inputData['field0'] === 'field2') {
          return [{ 
            key: 'field2', 
            type: 'string', 
            required: true,
            label: 'Field2' 
          }];
        }
        return [];
      },
    ]

It works as expected - renders field based on user selection, however above the dropdown options I see this message:

We couldn't find any more choices.
Sorry, there are no more choices. We've loaded all 2.

How do I get rid of this message?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try to use case switch control instead.It looks cleaner and will not give any warning errors.

field = bundle.inputData.field0
 switch (field) {
          case "field1":
              return [{ 
            key: 'field1',  
            type: 'string', 
            required: true, 
            label: 'Field1' 
          }];
            case "field2":
              return [{ 
            key: 'field2',  
            type: 'string', 
            required: true, 
            label: 'Field2' 
          }];
              default:
            return [];
        }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!