Semantic-Org/Semantic-UI · error

The method you called is not defined.

Error message

The method you called is not defined.

What it means

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.

Source

Thrown at src/definitions/behaviors/form.js:1306

    message    : '.error.message',
    prompt     : '.prompt.label',
    radio      : 'input[type="radio"]',
    reset      : '.reset:not([type="reset"])',
    submit     : '.submit:not([type="submit"])',
    uiCheckbox : '.ui.checkbox',
    uiDropdown : '.ui.dropdown'
  },

  className : {
    error   : 'error',
    label   : 'ui prompt label',
    pressed : 'down',
    success : 'success'
  },

  error: {
    identifier : 'You must specify a string identifier for each field',
    method     : 'The method you called is not defined.',
    noRule     : 'There is no rule matching the one you specified',
    oldSyntax  : 'Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.'
  },

  templates: {

    // template that produces error message
    error: function(errors) {
      var
        html = '<ul class="list">'
      ;
      $.each(errors, function(index, value) {
        html += '<li>' + value + '</li>';
      });
      html += '</ul>';
      return $(html);
    },

View on GitHub (pinned to 597843ab84)

Solutions

  1. Cross-check the method name against the Semantic UI Form docs for the installed version.
  2. Remove the trailing parenthesis/typos and quote the method name exactly.
  3. If migrating from 1.x, consult the changelog for renamed methods.

Example fix

// before
$('.ui.form').form('submitt');
// after
$('.ui.form').form('submit');
Defensive patterns

Strategy: type-guard

Validate before calling

var FORM_METHODS = ['submit','validate form','add field','remove field','is valid','set value','get value','destroy','reset'];
function safeFormCall($f, method, args) {
  if (FORM_METHODS.indexOf(method) === -1) { console.warn('Unknown form method:', method); return; }
  return $f.form.apply($f, [method].concat(args || []));
}

Type guard

function isKnownFormMethod(name) {
  var m = $.fn.form.settings;
  return !!(m && (m[name] || typeof $.fn.form.prototype[name] === 'function'));
}

Prevention

When it happens

Trigger: Calling a misspelled or non-existent method on the form behavior: $('.ui.form').form('submitt'), .form('resetValues'), or a private method prefixed incorrectly.

Common situations: 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.

Related errors


AI-assisted analysis of Semantic-Org/Semantic-UI@597843ab84 (2026-08-13). Data as JSON: /api/errors/ceb4df7046746b84. Report an issue: GitHub.