Date Picker

Description

The Date Picker Node opens the new Cognigy Date picker plugin in the current chat. If you're using the Facebook Message Chat or Admin Panel, the Date picker will open a Pop-Up window to let the user interact with the picker.

You have to define a few properties to customize the Node for your needs.

Properties

Parameter

Type

Description

Required

EventName

CognigyScript

Title of the Date Picker dialog

yes

Language

Select

The language of the date picker. Select the locale for the language you want the Date Picker to use.

Minimum Date

CognigyScript

The first date available to the user to pick

yes

Maximum Date

CognigyScript

The last date available to the user to pick

yes

Disable Selected Dates

Boolean

Dates entered in the Date Selection field are disabled if this is active, else they're enabled

Date Selection Range

Boolean

Enable this to define a range in the Date Selection field. Enter only the start and end dates in the Date Selection field.

Date Selection

CognigyArray

A list of dates. Use the following format:
2019-01-05
Only two dates allowed if Date Selection Range is active and as many as you want if it's disabled

Enable Time

Boolean

Enable this to have the user select a time as well as a date. Shows a time picker below the date selection

Mode

Select

Select how many dates the user should pick

Single: 1
Multiple: 1 or more
Range: user selects a range from a start date to an end date

Open Picker Button Text

CognigyScript

The text of the button to open the Date picker such as "Pick a date"

yes

Cancel Button Text

CognigyScript

The text of the cancel button in the Date picker such as "Cancel"

yes

Submit Button Tex

CognigyScript

The text of the submit button in the Date picker such as "Submit" or "Choose"

yes

Time 24hr

Boolean

Set this to active to provide 24hr time format.

Only important if Enable Time is active.

Date Format

CognigyScript

The format of the date such as "Y-m-d"

Leave this field empty as a default.


Did this page help you?