Search for information online
For this type of project, you can use the Mining business contacts preset (view code in the sandbox). It has pre-configured validation and task layout. In this preset, a Toloker needs to enter the organization's contact information found online.
- view.text: To add text to the task.
- view.link-group: To group links together.
- helper.search-query: To create a search query.
- A combination of helper.if and condition.equals: Hides the contact input fields if “No contacts” is selected.
- field.checkbox: To add a checkbox.
- field.phone-number: To add a phone number input field.
- field.email: To add an email input field.
- A combination of condition.any, condition.required, and condition.equals: For checking that either the “Phone” or “Email” field is filled in, or the “No contacts” option is selected.
- plugin.toloka: Customizes the task layout.
What else can be configured
-
To let Tolokers enter long texts, add the field.textarea field.
-
To let Tolokers enter numbers, add the field.number field.
-
To let Tolokers search for files online, add the file selection field field.file. For example, use this if they need to upload a photo with a certain object in it.
In task verification mode, the uploaded images will appear automatically. You can view, rotate, and switch between images.
-
If a Toloker needs to find and submit a link to a specific page from the website, add the condition.same-domain component. The component checks that the link is from the required domain.
If this preset doesn't meet your needs, see other examples in this section.
Add a field for selecting response options
If a Toloker needs to click on the search link and answer a question, add the field.radio-group field for selecting one of the response options.
Add an image and a date input field
For example, use this to search for information about an actor by their name and photo.
In this example, the following fields are added:
- view.image: Image.
- field.text: For entering a short text.
- field.date: For entering the date of birth.
Divide the task interface into columns
Another version of the task, in which a Toloker needs to find information about the organization.
In this example, the following fields are added:
- The layout.columns component, which allows you to place the task description and the site page inside the view.iframe component in two columns.
- view.text: The task text.
- view.link: A link to the site.
- field.button-radio-group: Buttons for response options.
- The condition.schema component: Checks the format of the entered data (in this case, the INN and OGRN code formats).