
It uses the same attributes as the slider control: min, max, and step, and enforces a number as it’s input. Participants Database included the HTML5 “Numeric” field type a while back. Note that commas can’t be used in those values. for instance to only allow dates for the year 2016, you’d use a values string like this: If you want to use the attributes, they accept a date for their value. The user can directly enter any date they want. This field type does make use of attributes: you can set the earliest and latest date that can be entered, but it only works for the datepicker.

This is provided by the “Datepicker” add-on to Participants database. On many platforms, a native date picker is available, but it is notably absent in Firefox, so this form element has limited usefulness without some kind of javascript datepicker to use as a backup. This field doesn’t have any type of validation.

There is no input validation, so basically anything can be entered here. This form element is primarily of benefit on touchscreen devices where a special input is activated, making it much easier for the user to enter a phone number. I’m detailing this for each field type below.

These attributes can be set in the “values” field of the form element definition and uses the same form as other fields that make use of the “values” parameter. Some of the new form elements use attributes to modify their behavior. The plugin is very easy to use: just activate it and the new form elements become available in the “Form Element” dropdown of the field definition on the “Manage Database Fields” page of Participants Database. Using jQuery-based client-side forms validation makes your forms easier and faster to fill out and is the only way to achieve conditional validation where some fields are only validated given the state of other fields.

If you’ve got some Javascript skills, this plugin works seamlessly with popular jQuery validation plugins to give your users a complete client-side validation experience. If you need a more complex validation (such as using a regular expression or field matching), the form submits and Participants Database applies it’s validation to the fields that can’t be validated in the browser. This layer of validation works well with and conpliments the plugin’s built-in validation methods. When you add the “required” attribute to a field, the field will be validated by the browser before the form is even submitted. HTML5 also introduced browser-based client side forms validation. These elements can improve the user experience of your forms by providing a more intuitive interface for entering things like phone numbers, email addresses, URLs and more. These input elements offer several advantages over the standard inputs, and are especially useful to mobile and tables users because it interactively provides the best input tool for the field. With this add-on you can begin using HTML5 input elements in your Participants Database forms.
