feat(n8n Form Node): Respond with Text (#12979)

This commit is contained in:
Dana
2025-02-04 18:35:25 +01:00
committed by GitHub
parent ddc40ef7de
commit 182fc150be
6 changed files with 276 additions and 175 deletions

View File

@@ -187,7 +187,7 @@ export function prepareFormData({
return formData;
}
const checkResponseModeConfiguration = (context: IWebhookFunctions) => {
const validateResponseModeConfiguration = (context: IWebhookFunctions) => {
const responseMode = context.getNodeParameter('responseMode', 'onReceived') as string;
const connectedNodes = context.getChildNodes(context.getNode().name);
@@ -456,7 +456,7 @@ export async function formWebhook(
);
const method = context.getRequestObject().method;
checkResponseModeConfiguration(context);
validateResponseModeConfiguration(context);
//Show the form on GET request
if (method === 'GET') {