Userforms extension won't work

Silverstripe Version:
4.1
Question:
I can’t seem to update my userform cms summary fields. After putting in numerous exits and debugs the updateSummaryFields() method won’t work.
Details of your query go here

//My yml file
SilverStripe\UserForms\Model\Submission\SubmittedForm:
  extensions:
    - MyUserFormSubmittedFormExtension

//My Extension class
use SilverStripe\ORM\DataExtension;

class MyUserFormSubmittedFormExtension extends DataExtension {
  public function updateSummaryFields(&$fields) {
      //Nothing is happening here even though it should
  }
}

You’ll need to ensure that you import the DataExtension namespace:

use SilverStripe\ORM\DataExtension;

I am namespacing correctly I just forgot to put it in the code above.

Next things to check:

  • You’ve flushed your cache
  • Your config file exists in the _config/ folder
  • Your config file has a .yml extension
  • Your PHP class has a .php extension

Yeah I am I can get updateCMSFields() to work no problem but for some reason updateSummaryFields() seems to not be called when extending SubmittedForm.

Can you check that DataObject::summaryFields() is called, and debug the parts of that method that are working?