_setForm

Sets the default Form of a Job Type

Parameters

id

The ID of the Job Type.

val

The ID of the Form being assigned to the Job Type

Example

430545 here is the ID of an example Form assigned to a Job Type with the ID of 122041.

FM_api(
    'JobType_setForm',[
        'id' => '122041',
        'val' => '430545'
    ]
);

Result

On Success

On Failure

If there is no "id" variable or the id given is less than 1:

If there is no "val" variable or the value given does not match the ID of any Form:

If the "id" given does not match any Job Type:

Last updated