mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(n8n Form Trigger Node): New node (#7130)
Github issue / Community forum post (link here to close automatically): based on https://github.com/joffcom/n8n-nodes-form-trigger --------- Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
30
packages/nodes-base/nodes/Form/interfaces.ts
Normal file
30
packages/nodes-base/nodes/Form/interfaces.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export type FormField = {
|
||||
fieldLabel: string;
|
||||
fieldType: string;
|
||||
requiredField: boolean;
|
||||
fieldOptions?: { values: Array<{ option: string }> };
|
||||
multiselect?: boolean;
|
||||
};
|
||||
|
||||
export type FormTriggerInput = {
|
||||
isSelect?: boolean;
|
||||
isMultiSelect?: boolean;
|
||||
isInput?: boolean;
|
||||
labbel: string;
|
||||
id: string;
|
||||
errorId: string;
|
||||
type?: 'text' | 'number' | 'date';
|
||||
inputRequired: 'form-required' | '';
|
||||
selectOptions?: string[];
|
||||
multiSelectOptions?: Array<{ id: string; label: string }>;
|
||||
};
|
||||
|
||||
export type FormTriggerData = {
|
||||
testRun: boolean;
|
||||
validForm: boolean;
|
||||
formTitle: string;
|
||||
formDescription?: string;
|
||||
formSubmittedText?: string;
|
||||
n8nWebsiteLink: string;
|
||||
formFields: FormTriggerInput[];
|
||||
};
|
||||
Reference in New Issue
Block a user