Is there a reliable way to get model's database table name from an ArrayList of classes, or to get the table name for a FQCN string, kinda like the opposite of SilverStripe/ORM/DataObjectSchema::tableClass($table)? e.g. classTable('\MyNamespace\IsWellNamed\MyClass')

  1. $my_class_instances = MyClass::get()->byIDs($my_ids)
  2. foreach (MyClass::get()->byIDs($my_ids) as $instance) {
  3. echo $instance->getTableName() . "\r\n";
  4. }

One note is that the userforms Required is under the Root.Validation, not sure if it makes a differernt


New, I tried to make the required checkbox checked by default


And tried

  1. private static $defaults = [
  2. 'Required' => true
  3. ];

But it doesn't affect that checkbox


I've tried use

  1. private static $db = array(
  2. 'Required' => "Boolean(1)"
  3. );

Hi how do I set the CMS's CheckboxField to be checked by default?


Do I need to do anything special to have the UndefinedOffset/silverstripe-nocaptcha field display as an option in my userform? I've done the configuration as I normally would per the instructions and set it as my default spam protector too.