Skip to content

Commit e898451

Browse files
committed
Get the container for the form field in the JavaScript example
1 parent 8dd6b59 commit e898451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ When this button is pressed, the `fileProcessorCustomAction` event is fired, whi
553553
Example:
554554

555555
```ts
556-
document.getElementById('exampleFileID').parentElement.addEventListener('fileProcessorCustomAction', (event) => {
556+
document.getElementById('exampleFileIDContainer').addEventListener('fileProcessorCustomAction', (event) => {
557557
// event.detail is the $actionName
558558
});
559559
```

0 commit comments

Comments
 (0)