Previous Topic

Next Topic

Book Contents

Book Index

Add Event Form

The add event form allows site visitors to create connectDaily events without having a login. It's designed to allow the public to add events to your calendar and it's responsive so it will work with mobile devices.

In order to use this feature, you must have the Enhanced Tools premium feature.

Short Code Options

Option Name

Description

calendar_id

Optional. default calendar ID for events. Only applicable if the backing connectDaily system contains more than one calendar.

allow_recurrence

"1" to allow creating recurring events. "0" to allow only one-time events.

required_fields

Space or comma-separated list of additional fields to mark as required. Field names are the input element names without the CD prefix. E.G. contact_info.

Designer Level Script Hooks

The add event form provides two designer-level script hooks. These hooks will automatically be called if they're present. The hook names are:

userAddInitHook
userAddSubmitHook

To create them, add javascript to your page:

<script type="text/javascript">

CDaily['userAddInitHook']=function(){
	// Make contact name required
	jQuery('#idCDcontact_name').prop('required',true);
}

CDaily['userAddSubmitHook']=function(){
	//	Your on submit code goes here
}
</script>

Notes:

See Also:

See Also

WordPress Calendar Plugin

Installation

WordPress Mini-Calendar and Simple List of Events Widgets

Detailed List of Events Shortcode and Widget

Responsive Month View Calendar

Events Filter for Calendar Short Code

Display Single Event

WordPress IFRAME Calendar Short Codes

Frequently Asked Questions About the WordPress Calendar Plugin

Troubleshooting

Short Code and Widget Reference