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 |
| The ID of the parameter, unique in the product. Can be retrieved from the parameter HTML element or parameter data. |
value |
| New parameter value to set. |
Example usage
JS
window.twikit.setValue("52-wheel-patterns-38-select-a-pattern", "Cross");