Hallo,
ich bekomme das „UpdateFormField“ einfach nicht zum laufen.
Ausgang:
Beginn meiner form.json
{"elements":[
{ "type": "Label", "name": "Size", "caption": "demo text", "visible": false },
.
.
.
dann mein code im „ApplyChanges()“
public function ApplyChanges() {
// Diese Zeile nicht löschen
parent::ApplyChanges();
$this->UpdateFormField('Size', 'visible', true);
$this->UpdateFormField('Size', 'caption','new text');
}
Problem:
- es passiert einfach nichts beim „ApplyChanges()“
- reload symcon … keine Änderung
- uninstall instance + reinstall … keine Änderung
Was mache ich da falsch?