Skip to content

Commit

Permalink
Get the container for the form field in the JavaScript example
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyperghost committed Jul 31, 2024
1 parent 8dd6b59 commit e898451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/php/api/form_builder/form_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ When this button is pressed, the `fileProcessorCustomAction` event is fired, whi
Example:

```ts
document.getElementById('exampleFileID').parentElement.addEventListener('fileProcessorCustomAction', (event) => {
document.getElementById('exampleFileIDContainer').addEventListener('fileProcessorCustomAction', (event) => {
// event.detail is the $actionName
});
```
Expand Down

0 comments on commit e898451

Please sign in to comment.