| @@ -358,8 +358,16 @@ | ||
| 358 | 358 | public function get_cf_form_id(): int { |
| 359 | 359 | return $this->entity->getFormId(); |
| 360 | 360 | } |
| 361 | 361 | |
| 362 | + /** | |
| 363 | + * Instance of the form inside the form id (e.g. the Elementor widget); | |
| 364 | + * empty for records stored before 5.12.0 and for forms without instances. | |
| 365 | + */ | |
| 366 | + public function get_form_ref(): string { | |
| 367 | + return $this->entity->getFormRef(); | |
| 368 | + } | |
| 369 | + | |
| 362 | 370 | public function is_confirmed(): bool { |
| 363 | 371 | return $this->entity->isConfirmed(); |
| 364 | 372 | } |
| 365 | 373 | |
| @@ -804,8 +812,9 @@ | ||
| 804 | 812 | 'email' => 'email', |
| 805 | 813 | 'id' => 'id', |
| 806 | 814 | 'consent_text' => 'consent_text', |
| 807 | 815 | 'consent_field' => 'consent_field', |
| 816 | + 'form_ref' => 'form_ref', | |
| 808 | 817 | ]; |
| 809 | 818 | |
| 810 | 819 | $result = []; |
| 811 | 820 | foreach ( $mapping as $legacy => $entity ) { |