How to request reload for TYPO3 extension field using mask

383 views Asked by At

How do I request a reload for a TYPO3 extension field that is the trigger for a display condition of an other field in the mask.json.

    "tx_mask_foobarfield": {
        "config": {
            "type": "select",
            "renderType": "selectSingle",
            "size": "",
            "default": "foo",
            "onChange" : "reload",
            "items": [
                [
                    "Foo",
                    "foo"
                ],
                [
                    "Bar",
                    "bar"
                ]
            ],
            "foreign_table": "",
            "foreign_table_where": "",
            "fileFolder": "",
            "fileFolder_extList": "",
            "fileFolder_recursions": "",
            "maxitems": "",
            "autoSizeMax": ""
        },
        "exclude": "0",
        "key": "some_key"
    },

I tried a couple of things but all references I could find tell me just about the way to do it in TCA.

1

There are 1 answers

0
Bernd Wilke πφ On BEST ANSWER

I think you have the "onChange": "reload" on the wrong level.
From documentation it should be a direct successor of the fieldname (sibling to config)