Ad

How To Request Reload For TYPO3 Extension Field Using Mask

- 1 answer

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.

Ad

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)

Ad
source: stackoverflow.com
Ad