_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

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 Appointment Type:

Last updated