mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat: Checkboxes and Radio Buttons field types (#17934)
Co-authored-by: Your Name <you@example.com> Co-authored-by: Roman Davydchuk <roman.davydchuk@n8n.io>
This commit is contained in:
@@ -1,20 +1,37 @@
|
||||
export type FormTriggerInput = {
|
||||
isSelect?: boolean;
|
||||
isMultiSelect?: boolean;
|
||||
isTextarea?: boolean;
|
||||
isFileInput?: boolean;
|
||||
isInput?: boolean;
|
||||
label: string;
|
||||
defaultValue?: string;
|
||||
import type { GenericValue } from 'n8n-workflow';
|
||||
|
||||
export type FormField = {
|
||||
id: string;
|
||||
errorId: string;
|
||||
type?: 'text' | 'number' | 'date';
|
||||
label: string;
|
||||
placeholder?: string;
|
||||
inputRequired: 'form-required' | '';
|
||||
type?: 'text' | 'number' | 'date' | 'email';
|
||||
defaultValue: GenericValue;
|
||||
|
||||
isInput?: boolean;
|
||||
isTextarea?: boolean;
|
||||
|
||||
isSelect?: boolean;
|
||||
selectOptions?: string[];
|
||||
|
||||
isMultiSelect?: boolean;
|
||||
radioSelect?: 'radio';
|
||||
exactSelectedOptions?: number;
|
||||
minSelectedOptions?: number;
|
||||
maxSelectedOptions?: number;
|
||||
multiSelectOptions?: Array<{ id: string; label: string }>;
|
||||
|
||||
isFileInput?: boolean;
|
||||
acceptFileTypes?: string;
|
||||
multipleFiles?: 'multiple' | '';
|
||||
placeholder?: string;
|
||||
|
||||
isHtml?: boolean;
|
||||
html?: string;
|
||||
|
||||
isHidden?: boolean;
|
||||
hiddenName?: string;
|
||||
hiddenValue?: GenericValue;
|
||||
};
|
||||
|
||||
export type FormTriggerData = {
|
||||
@@ -26,7 +43,7 @@ export type FormTriggerData = {
|
||||
formSubmittedText?: string;
|
||||
redirectUrl?: string;
|
||||
n8nWebsiteLink: string;
|
||||
formFields: FormTriggerInput[];
|
||||
formFields: FormField[];
|
||||
useResponseData?: boolean;
|
||||
appendAttribution?: boolean;
|
||||
buttonLabel?: string;
|
||||
|
||||
Reference in New Issue
Block a user