coreForms Demo Site

[Demo Home]

Format: Time

Some things to note about the time format. It sets up 3 different fields automatically and on submit, checks to see if it is a time and puts the 3 fields together into the field you specified in the fieldname attribute (in 24 hour time format).

Here is a list of some of the tags you can use with time:

Please note that if you do choose to use a default value and use Now(), make sure you set the minuteinterval to 1 or you will get some errors.

*
* Indicates a Required Field

 

 

Code:

<cfmodule
template="#coreform#"
formname="form1"
maketable="Y"
allowfile="Y">

<cfmodule template="#corefield#"
format="time"
fieldname="TimeOfDay"
caption="Time Of Day"
minuteinterval="1"
default="#now()#"
required="Y" />

<cfmodule template="#corefield#"
format="submit"
fieldname="Save"
Value="Save" />
</cfmodule>

<cfif isdefined('form.coreformaction') and request.isformvalid eq "OK">
<cfdump var="#form#">
</cfif>

 

©2012 CompositeWeb.com