timekit-io / booking-js

:date: Make a beautiful embeddable booking widget in minutes
https://developers.timekit.io/docs/booking-widget-v2
MIT License
2.42k stars 189 forks source link

Custom fields #184

Closed laander closed 6 years ago

laander commented 6 years ago

Motivation

Support for custom customer fields that can be defined through our admin or in the config. Existing native fields are saved in the customer object, whereas new custom fields are saved as booking meta data.

UI & UX

Example of widget with 2 new custom fields:

screen shot 2018-08-14 at 16 33 40

Design choices

Supports the following field types using the format property: ['text', 'email', 'tel', 'number', 'textarea', 'select', 'checkbox']

Side-effects/other

N/A

Tests

Updated a unit test to better cover custom fields.

Known issues/limitations

N/A

Tracking

N/A

Who should review it

@vistik

Trolzie commented 6 years ago

👾 looks good