Previous Topic: ca_pam_getDateFieldValueInMillis(_id)Next Topic: ca_pam_setDateFieldMinValue(_id, val)


ca_pam_setDateFieldMaxValue(_id, val)

Sets the value of the Date field Maximum Value property. Form users cannot enter a date in the Date field that is later than the Maximum Value.

Input Parameters
_id (string)

Specifies the unique identifier of a Date field.

val

Specifies the value to use as a maximum, expressed as a date string (for example, 05/20/2014).

Return Value

None.

Example

This example sets the Maximum Value property of the DateDeparture field to the date stored in the LastDay variable.

ca_pam_setDateFieldMaxValue('Form.DateDeparture',LastDay);