# PivotTable.setFields Method

> PivotTable.setFields method in the TX Sheet Control JavaScript API for the browser, with its syntax and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > PivotTable > PivotTable.setFields Method
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfields-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfields-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfields-method/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfields-method/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfields-method/#examples)

---

## Nearby

- **Previous:** [PivotTable.setFilters Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setfilters-method/llms.txt)
- **Next:** [PivotTable.setExpanded Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/pivottable/setexpanded-method/llms.txt)
