AdditionalField

public final class AdditionalField

Class representation of an additional field.

Constructors

Link copied to clipboard
public AdditionalField AdditionalField(@Json(name = "label") String label, @Json(name = "type") AdditionalFieldType type, @Json(name = "required") Boolean required, @Json(name = "pattern") String pattern, @Json(name = "order") Integer order, @Json(name = "options") AdditonalFieldOptionsType options)

Properties

Link copied to clipboard
private final String label

The text label to be displayed in the Scheduler UI.

Link copied to clipboard

A list of options for the dropdown or radio_button types. This field is required for the dropdown and radio_button types.

Link copied to clipboard
private final Integer order

The order in which the field will be displayed in the Scheduler UI. Fields with lower order values will be displayed first.

Link copied to clipboard
private final String pattern

A regular expression pattern that the value of the field must match.

Link copied to clipboard
private final Boolean required

Whether the field is required to be filled out by the guest when booking an event.

Link copied to clipboard
private final AdditionalFieldType type

The field type. Supported values are text, multi_line_text, email, phone_number, dropdown, date, checkbox, and radio_button.

Functions

Link copied to clipboard
public final String getLabel()

The text label to be displayed in the Scheduler UI.

Link copied to clipboard

A list of options for the dropdown or radio_button types. This field is required for the dropdown and radio_button types.

Link copied to clipboard
public final Integer getOrder()

The order in which the field will be displayed in the Scheduler UI. Fields with lower order values will be displayed first.

Link copied to clipboard
public final String getPattern()

A regular expression pattern that the value of the field must match.

Link copied to clipboard
public final Boolean getRequired()

Whether the field is required to be filled out by the guest when booking an event.

Link copied to clipboard

The field type. Supported values are text, multi_line_text, email, phone_number, dropdown, date, checkbox, and radio_button.