mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(n8n Form Trigger Node): Improvements (#10092)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com> Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
This commit is contained in:
@@ -28,6 +28,9 @@ export const formDescription: INodeProperties = {
|
||||
placeholder: "e.g. We'll get back to you soon",
|
||||
description:
|
||||
'Shown underneath the Form Title. Can be used to prompt the user on how to complete the form.',
|
||||
typeOptions: {
|
||||
rows: 2,
|
||||
},
|
||||
};
|
||||
|
||||
export const formFields: INodeProperties = {
|
||||
@@ -69,6 +72,14 @@ export const formFields: INodeProperties = {
|
||||
name: 'Dropdown List',
|
||||
value: 'dropdown',
|
||||
},
|
||||
{
|
||||
name: 'Email',
|
||||
value: 'email',
|
||||
},
|
||||
{
|
||||
name: 'File',
|
||||
value: 'file',
|
||||
},
|
||||
{
|
||||
name: 'Number',
|
||||
value: 'number',
|
||||
@@ -88,6 +99,17 @@ export const formFields: INodeProperties = {
|
||||
],
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Placeholder',
|
||||
name: 'placeholder',
|
||||
type: 'string',
|
||||
default: '',
|
||||
displayOptions: {
|
||||
hide: {
|
||||
fieldType: ['dropdown', 'date', 'file'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Field Options',
|
||||
name: 'fieldOptions',
|
||||
@@ -133,6 +155,48 @@ export const formFields: INodeProperties = {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Multiple Files',
|
||||
name: 'multipleFiles',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description:
|
||||
'Whether to allow the user to select multiple files from the file input or just one',
|
||||
displayOptions: {
|
||||
show: {
|
||||
fieldType: ['file'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Accept File Types',
|
||||
name: 'acceptFileTypes',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'List of file types that can be uploaded, separated by commas',
|
||||
hint: 'Leave empty to allow all file types',
|
||||
placeholder: 'e.g. .jpg, .png',
|
||||
displayOptions: {
|
||||
show: {
|
||||
fieldType: ['file'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Format Date As',
|
||||
name: 'formatDate',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description:
|
||||
'Returns a string representation of this field formatted according to the specified format string. For a table of tokens and their interpretations, see <a href="https://moment.github.io/luxon/#/formatting?ID=table-of-tokens" target="_blank">here</a>.',
|
||||
placeholder: 'e.g. dd/mm/yyyy',
|
||||
hint: 'Leave empty to use the default format',
|
||||
displayOptions: {
|
||||
show: {
|
||||
fieldType: ['date'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Required Field',
|
||||
name: 'requiredField',
|
||||
|
||||
Reference in New Issue
Block a user