Apify Discord Mirror

Updated 5 months ago

how to setup/use depending input fields

At a glance

The community member is looking to set up depending input fields in their actor. They want a drop-down select where users can choose between "scrape products URLs" or "scrape search results page". If the user selects "scrape products URLs", they should be able to add multiple URLs. If the user selects "scrape search results page", there should be a single input string field.

In the comments, another community member mentions that Apify does not currently have depending input fields, so the original poster might need to add both input fields.

Hi πŸ‘‹

I would like to know how to setup/use depending input fields.

Basically, my actor will have a drop-down select where users can select either scrape products URLs or scrape search results page.

Here's my goal:
  • If the user selects "scrape products URLs", he should be able to add as many URLs as he wants
  • If the user selects "scrape search results page", there should be a single input string (removing the ability to add others input string fields)
How can I set this up? Thanks πŸ™
L
a
2 comments
Hi , Apify does not currently have depending input fields. So you might need to add both of them.
Thanks Lukas: πŸ™
Add a reply
Sign up and join the conversation on Discord