code: def handle_submit(self):
          
          wst_uid = self.request.form.get("getWorksheetTemplate")
          if not wst_uid:
              return False
  
          layout = self.context.getLayout()
          wst = api.get_object_by_uid(wst_uid)
  
          self.request["context_uid"] = api.get_uid(self.context)
          self.context.applyWorksheetTemplate(wst)
  
          if len(self.context.getLayout()) == len(layout):
              return False
          return True
docs: Handle form submission