# \_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"}
```
