I created datepicker widget in form with dependsOn option. In filterField i want to set value for this field.
$fields->datado->value = ‘2024-09-16 10:30:38’;
this line doensnt update field value.
Also i can read $fields->datado->value. So field name is set corretly.
For text field type it works.
apinard
#2
Hi @mkinternet ,
I just tested the following code:
public function filterFields($fields, $context) {
$fields->published_at->value = '2024-09-16 10:30:38';
}
The value is shown correctly:
Doesnt work on OC1. Which version did you tested?
apinard
#4
Hi @mkinternet,
I tested this on the latest version, 3.6.30.
Here are some upgrade guides: