
## getFieldCode() {#default}

Returns text between field start and field separator (or field end if there is no separator).
Both field code and field result of child fields are included.


```js
getFieldCode()
```

## getFieldCode(includeChildFieldCodes) {#boolean}

Returns text between field start and field separator (or field end if there is no separator).


```js
getFieldCode(includeChildFieldCodes: boolean)
```

| Parameter | Type | Description |
| --- | --- | --- |
| includeChildFieldCodes | boolean | ``true`` if child field codes should be included. |

## See Also

* module [Aspose.Words](../../)
* class [Field](../)

