This page displays the "Pre-Loaded CSS/JS" demo form. If you are building an AJAX-powered "one-page application" - load a single page, and then load all content on the page via AJAX - then the Pre-Loaded options are exactly what you're looking for. By using the following (optional) attributes, you can seamlessly use cfUniForm-generated forms within your application.

loadDefaultCSS (boolean)
Indicates whether or not to load the Uni-Form CSS files. Defaults to true.
loadDefaultJS (boolean)
Indicates whether or not to load the Uni-Form JS files. Defaults to true.
loadDateUI (boolean)
Indicates whether or not to load the prerequisite files for the jQuery UI datepicker plugin. Defaults to false.
configDateUI (boolean)
Indicates whether or not to run configuration routines for the jQuery UI datepicker plugin. Defaults to false.
dateSetup (any)
Commands to load for the jQuery datepick plugin. Can be provided as a string OR a struct. If it is a string, it will be loaded as-is. If it is a struct, it will be looped over and a string of key-value pairs will be created. Defaults to an empty string.
loadTimeUI (boolean)
Indicates whether or not to load the prerequisite files for the jQuery time entry plugin. Defaults to false.
configTimeUI (boolean)
Indicates whether or not to run configuration routines for the jQuery time entry plugin. Defaults to false.
timeSetup (any)
Commands to load for the jQuery time entry plugin. Can be provided as a string OR a struct. If it is a string, it will be loaded as-is. If it is a struct, it will be looped over and a string of key-value pairs will be created. Defaults to an empty string.
loadMaskUI (boolean)
Indicates whether or not to load the prerequisite files for the jQuery masked input plugin. Defaults to false.
configMaskUI (boolean)
Indicates whether or not to run configuration routines for the jQuery masked input plugin. Defaults to false.
loadValidation (boolean)
Indicates whether or not to load the prerequisite files for the jQuery form validation plugin. Defaults to false.
configValidation (boolean)
Indicates whether or not to run configuration routines for the jQuery form validation plugin. Defaults to false.
validationSetup (any)
Commands to load for the jQuery validation plugin. Can be provided as a string OR a struct. If it is a string, it will be loaded as-is. If it is a struct, it will be looped over and a string of key-value pairs will be created. Defaults to an empty string.
loadRatingUI (boolean)
Indicates whether or not to load the prerequisite files for the jQuery star-ratings plugin. Defaults to false.
configRatingUI (boolean)
Indicates whether or not to run configuration routines for the jQuery star-ratings plugin. Defaults to false.
loadjQuery (boolean)
Indicates whether or not to load the jQuery core library. Defaults to false.
loadTextareaResize (boolean)
Indicates whether or not to load the prerequisite files for the jQuery PrettyComments plugin. Defaults to false.
configTextareaResize (boolean)
Indicates whether or not to run configuration routines for the jQuery PrettyComments plugin. Defaults to false.
addJStoHead (boolean)
Indicates whether or not cfUniForm should add the JS to the <head> of the document. If 'false', it will be added immediately after the form markup. Defaults to true.
jsConfigVar (string)
The name of the variable that should be used to return the jsConfig to the caller. If not provided, the jsConfig will be added automatically. (Default behavior.) If provided, cfUniForm will set the variable in the calling page.
configForm (boolean)
Indicates whether or not cfUniForm should call jQuery().uniform() on this specific form. Useful if you have all of the assets already loaded and are loading the form into the page via ajax. Defaults to false.

You can provide any or all of these attributes explicitly, or you may use a global config struct to provide global settings.

View the code used to generate the form.


Task Details

Enter a name to remember your task by (e.g. Pick up laundry)

Enter a detailed description of the task (e.g. directions to the cleaners).