From e8984511e2c687de5696d8ab871929b492b3aaa3 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 31 Jul 2024 08:55:34 +0200 Subject: [PATCH] Get the container for the form field in the JavaScript example --- docs/php/api/form_builder/form_fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index 73e5c4e7..6f0c892a 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -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 }); ```