action.set

Sets the value from payload in the data in the data property.

Learn more about working with data.

For example, let's say you want to add shortcuts for the field.radio-group option. You need the shortcut to perform the same action as the selected option, which is to set the specified value in the data. To set this action, use action.set.

View example

As another example, you can use this component to count the number of clicks on an option and write the value in the output data. When the page is refreshed, set the value to 0.

View example

Component properties

NameTypeDescription
type*"action.set"Set component type.
datawritable

Data with values that will be processed or changed. Learn more about working with data.

payloadanyThe value to write to the data.
Contact support

Last updated: May 26, 2023

Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
FAQTroubleshootingSupportGlossary