# SetHiddenValue

Use the SetHiddenValue method to set a value in a hidden cell. Learn its syntax and parameters in documentation.

## Content

Sets a value in a hidden cell.

## Syntax

[JavaScript]

```javascript
FpSpread1.SetHiddenValue(r, colName, value);
```

## Parameters

***r***
Integer, row index
***colName***
String, column name
***value***
String, value to set in cell

## Return Type

None

## Remarks

This method puts a value in a hidden cell at the specified row and column.

## Example 1

This is a sample that contains the method.
On the server side on page load:

```csharp
FpSpread1.Sheets[0].Columns[0].Visible = false;
FpSpread1.Sheets[0].Cells[0, 0].Text = "test";
```

On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function ProfileSpread()
   {
          var spread = document.getElementById("FpSpread1");
          var v = spread.GetHiddenValue(0, "A");
          alert(v);
          spread.SetHiddenValue(0, "A", "test2");
          alert(spread.GetHiddenValue(0, "A")); //'test2'
   }
</script>
```

## See Also

[GetHiddenValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetHiddenValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)
[GetHiddenCellValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetHiddenCellValue)
[SetHiddenCellValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetHiddenCellValue)