Skip to main content
Skip table of contents

Web SDK Reference | Set value

The setValue() method updates the value of a parameter.

JS
setValue(
    parameterId: string,
    value: string | number
): void,

Parameters

Name

Type

Description

parameterId

string

The ID of the parameter, unique in the product. Can be retrieved from the parameter HTML element or parameter data.

value

string | number

New parameter value to set.

Example usage

JS
window.twikit.setValue("52-wheel-patterns-38-select-a-pattern", "Cross");
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.