Am I missing something here? I've done a lot of searching in the forums and the solutions I've found haven't worked for me (most of the posts are a few years old so maybe the syntax has changed).

How do you change the EmptyText property of a TextField in Ext 4.7 using javascript?

Here is my javascript below... everything else behaves as I would expect it to (so I know I have the function wired up correctly). The only thing not working is the change to emptyText.

applyEmptyText is throwing a javascript error. If I don't have that line, I don't get any errors, but the emptyText still isn't updated.

<script type="text/javascript">

    var handleRadioChange = function () {

        var isNameSearch = App.radioGlobalName.checked;

        if (isNameSearch) {
            App.txtPrimarySearch.reset();
            App.txtSecondarySearch.reset();
            App.txtPrimarySearch.emptyText = 'Enter Last Name';
            App.txtPrimarySearch.applyEmptyText();
            App.txtPrimarySearch.setWidth(145);
            App.txtSecondarySearch.show();
        }
        else {
            App.txtPrimarySearch.reset();
            App.txtSecondarySearch.reset();
            App.txtPrimarySearch.emptyText = 'Enter ADID';
            App.txtPrimarySearch.applyEmptyText();
            App.txtPrimarySearch.setWidth(295);
            App.txtSecondarySearch.hide();
        }

        App.storeEmployeeList.removeAll();
    }

</script>