> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/functions/setcontrolunmodifiedvalue.md).

# setControlUnmodifiedValue

Sets the value, that is used to compare to the actual control value. If both are not equal, the field will be marked as changed.

### Parameters

1. controlId - This is a parameter representing the ID of the form control. It is assumed to be a string.
2. value - This is a parameter representing the value that the control's "data-unmodified-value" attribute will be set to. It could be of any type.

## Example Usages

1\. Simple Example Usages

```javascript
app.setControlUnmodifiedValue("myControlId", "unmodified Value");
app.setControlUnmodifiedValue("myControlId", 1); // sets the value to 1.
```

2\. Simple Example Usages with variables

```javascript
let valueToCompare = "Hello Wolrd!";
app.setControlUnmodifiedValue("myControlId", valueToCompare);
```

### Return Values

Function does not explicitly produce return value.
