Skip to content

Commit 0c12158

Browse files
committed
FormSubmissionCommand.php: both identifier & id are needed
1 parent a767165 commit 0c12158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4040

4141
$formValue = $content->getFieldValue('form', 'eng-GB')->getFormValue();
4242
$data = [
43-
['id' => 'single_line', 'name' => 'Line', 'value' => 'The name'],
44-
['id' => 'number', 'name' => 'Number', 'value' => 123],
45-
['id' => 'checkbox', 'name' => 'Checkbox', 'value' => 0],
43+
['id' => '7', 'identifier' => 'single_line', 'name' => 'Line', 'value' => 'The name'],
44+
['id' => '8', 'identifier' => 'number', 'name' => 'Number', 'value' => 123],
45+
['id' => '9', 'identifier' => 'checkbox', 'name' => 'Checkbox', 'value' => 0],
4646
];
4747

4848
$this->formSubmissionService->create(

0 commit comments

Comments
 (0)