This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
phplee
Im trying to populate a datepicker with an expiry date but it never populates. if i change the field to a simple text field the date is there. does the date need to be in a certain format? Im doing it like this
public function filterFields($fields, $context = null)
{
$expiry_date = Carbon::now()->addYears(1);
$fields->expiry_date->value = $expiry_date;
}
Last updated
1-1 of 1