{"record":{"id":"ceb4df7046746b84","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-ceb4df","errorCode":null,"errorMessage":"The method you called is not defined.","messagePattern":"The method you called is not defined\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/definitions/behaviors/form.js","lineNumber":1306,"sourceCode":"    message    : '.error.message',\n    prompt     : '.prompt.label',\n    radio      : 'input[type=\"radio\"]',\n    reset      : '.reset:not([type=\"reset\"])',\n    submit     : '.submit:not([type=\"submit\"])',\n    uiCheckbox : '.ui.checkbox',\n    uiDropdown : '.ui.dropdown'\n  },\n\n  className : {\n    error   : 'error',\n    label   : 'ui prompt label',\n    pressed : 'down',\n    success : 'success'\n  },\n\n  error: {\n    identifier : 'You must specify a string identifier for each field',\n    method     : 'The method you called is not defined.',\n    noRule     : 'There is no rule matching the one you specified',\n    oldSyntax  : 'Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.'\n  },\n\n  templates: {\n\n    // template that produces error message\n    error: function(errors) {\n      var\n        html = '<ul class=\"list\">'\n      ;\n      $.each(errors, function(index, value) {\n        html += '<li>' + value + '</li>';\n      });\n      html += '</ul>';\n      return $(html);\n    },\n","sourceCodeStart":1288,"sourceCodeEnd":1324,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/behaviors/form.js#L1288-L1324","documentation":"Generic Semantic UI method-not-found error thrown by the standard 'invoke' dispatcher inside the form behavior. When you call $('.ui.form').form('methodName'), invoke walks the module object looking for methodName; if no matching property/function exists, it logs this error.","triggerScenarios":"Calling a misspelled or non-existent method on the form behavior: $('.ui.form').form('submitt'), .form('resetValues'), or a private method prefixed incorrectly.","commonSituations":"Typos in the method name; using a method that exists in a different Semantic UI module; version differences where a method was renamed or removed between 1.x and 2.x.","solutions":["Cross-check the method name against the Semantic UI Form docs for the installed version.","Remove the trailing parenthesis/typos and quote the method name exactly.","If migrating from 1.x, consult the changelog for renamed methods."],"exampleFix":"// before\n$('.ui.form').form('submitt');\n// after\n$('.ui.form').form('submit');","handlingStrategy":"type-guard","validationCode":"var FORM_METHODS = ['submit','validate form','add field','remove field','is valid','set value','get value','destroy','reset'];\nfunction safeFormCall($f, method, args) {\n  if (FORM_METHODS.indexOf(method) === -1) { console.warn('Unknown form method:', method); return; }\n  return $f.form.apply($f, [method].concat(args || []));\n}","typeGuard":"function isKnownFormMethod(name) {\n  var m = $.fn.form.settings;\n  return !!(m && (m[name] || typeof $.fn.form.prototype[name] === 'function'));\n}","tryCatchPattern":null,"preventionTips":["Wrap form method calls behind a single helper that validates the method name.","Pin the Semantic UI version and check method names against that version's docs.","Add a unit test that exercises each method name you depend on."],"tags":["semantic-ui","method-not-found","api-misuse"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}