Appointment Metadata Create form

Overview #

This allows developers to dynamically display additional fields when scheduling an appointment.

from canvas_sdk.effects.appointments_metadata import (
    FormField,
    InputType,
    AppointmentsMetadataCreateFormEffect,
)

AppointmentsMetadataCreateFormEffect(form_fields=[
    FormField(
        key='status',
        label='Status',
        type=InputType.SELECT,
        required=False,
        editable=True,
        options=["open", "close"],
        value=""
    ),
])

Structure #

FormField #

A FormField consists of the following properties:

Attributes #

AttributeTypeDescription
keystrunique identifier of the field - appointment metadata key
labelstrthe label that will be displayed on the field
typeInputTypethe type of the input - TEXT, SELECT, DATE.
requiredboolif the input is required.
editableboolif the input can be editabled.
optionslist[str]possible options for when the input type is set to “SELECT”
valuestrdefault value for the field

AppointmentsMetadataCreateFormEffect #

An AppointmentsMetadataCreateFormEffect consists of the following properties:

Attributes #

AttributeTypeDescription
form_fieldslist[FormField]list of fields.