Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Booking form fields can be customized and extended #33

Merged
merged 5 commits into from
Nov 27, 2015
Merged

Conversation

laander
Copy link
Contributor

@laander laander commented Nov 26, 2015

This enables customization of form fields (enabled, placeholder, prefilled, required) and adds three new types (phone, voip and location).

Fixes #16 and #10 and #9

See /examples/fields.htm for a full example of setting combination

These are the default settings:

bookingFields: {
  name: {
    placeholder: 'Your full name',
    prefilled: false
  },
  email: {
    placeholder: 'Your e-mail',
    prefilled: false
  },
  comment: {
    enabled: true,
    placeholder: 'Write a comment (optional)',
    prefilled: false,
    required: false
  },
  phone: {
    enabled: false,
    placeholder: 'Your phone number',
    prefilled: false,
    required: false
  },
  voip: {
    enabled: false,
    placeholder: 'Your Skype username',
    prefilled: false,
    required: false
  },
  location: {
    enabled: false,
    placeholder: 'Location',
    prefilled: false,
    required: false
  }
}

@fragmichdoch
Copy link

nice.

@laander
Copy link
Contributor Author

laander commented Nov 27, 2015

@fragmichdoch Good points, I've created separate feature requests for each.

laander added a commit that referenced this pull request Nov 27, 2015
Booking form fields can be customized and extended
@laander laander merged commit 40d33ef into master Nov 27, 2015
@laander laander deleted the custom-fields branch November 27, 2015 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants