Title: Required fields
Last modified: August 22, 2016

---

# Required fields

 *  Resolved [I-Visio](https://wordpress.org/support/users/i-visio/)
 * (@i-visio)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/required-fields-16/)
 * Hi,
 * How can i have some fields required as (name, tel, etc.)
 * Thanks
 * [https://wordpress.org/plugins/restaurant-reservations/](https://wordpress.org/plugins/restaurant-reservations/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/required-fields-16/#post-5873674)
 * Hi I-Visio,
 * Name is already required. I have written a couple micro-plugins for requiring
   a phone number. [This one](https://gist.github.com/NateWr/7e07054d09ab43d593dd)
   will just check if the phone field is empty. [This one](https://gist.github.com/NateWr/fedafb0be1989b4a0893)
   will also try to validate the phone number by ensuring only certain characters
   are included. If using the latter, please note the [warnings](http://themeofthecrop.com/2015/01/08/simple-phone-validation-restaurant-reservations/)
   about using this:
 * > Be careful, though. You don’t want to make it so strict that a potential diner
   > gets frustrated. Some people write numbers with parentheses, some with spaces,
   > some with dashes. Some people use full area codes. Some people just use local
   > numbers. Make sure you’re not limiting it too much.
 * All other fields are already required, with the exception of the Message field,
   which is hidden by default and so probably shouldn’t be required.
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/required-fields-16/#post-5873675)
 * I forgot to tell you how to use the micro-plugins. After following the link, 
   click the “Download Gist” on the right. Upload the .php file to your `/wp-content/
   plugins/` directory. You can then activate the plugin from the plugins list in
   your WordPress admin panel.
 *  [surfilwave](https://wordpress.org/support/users/surfilwave/)
 * (@surfilwave)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/required-fields-16/#post-5873944)
 * Hi Nate, your plugin is fantastic but I have some problems.
 * I can’t translate the booking fields in Italian (“When would you like to book?”,“
   Party Size”, “preferred dining time”, “name”, “phone”, “message”, and the button“
   book my table”).
    The email field I wish it was a sensitive field to the proper
   completion of the email (xxxxxxxxxx@xxxx.xxx), same thing for the field phone
   number (numbers only).
 * Is this possible? Can you tell me how can I do it please?
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/required-fields-16/#post-5873945)
 * Hi surfilwave,
 * You’ll find information about translating as well as making the phone number 
   required in the [plugin’s FAQ](https://wordpress.org/plugins/restaurant-reservations/faq/).
 * I’ve left email validation out because it’s actually a very difficult problem
   to get right without unintentionally blocking some email addresses. However, 
   if you want a very simple validation check, I’ve written a [micro addon that checks for @](https://gist.github.com/NateWr/7d4c44cd407a8c328120).
 * Once you’ve read the post about the required phone number, you’ll understandhow
   to make use of the micro-addon for email validation as well.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Required fields’ is closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [NateWr](https://wordpress.org/support/users/natewr/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/required-fields-16/#post-5873945)
 * Status: resolved