_setForm

Sets the default Form of an Appointment Type

Parameters

id

The ID of the Appointment Type.

val

The ID of the Form being assigned to the Appointment Type

Example

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

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

Result

On Success

{'ok':1}

On Failure

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

{"error":"missing or invalid parameter: id"}

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

{"error":"missing or invalid parameter: val"}

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

{"error":"job type does not exist"}

Last updated