> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/form/_countjobs.md).

# \_countJobs

Gives the number of Jobs using a chosen Form.

### Parameter

#### id

The ID of the used Form

### Example

```
FM_api('Form_countJobs',[
  'id'=>'460567'
]);
```

### Results

#### On Success

```
{"jobs":"2"}
```

#### On Failure

If the "id" parameter is missing or less than 1:

```
{"error":"invalid parameter: id"}
```

If the "id" parameter value does not match an existing Form:

```
{"error":"form does not exist"}
```

If the Form's type is not related to Jobs (e.g Invoice Table)

```
{"error":"unknown form type: 7"}
```
