MCPcopy Create free account
hub / github.com/formkit/formkit / setIncompleteMessage

Function setIncompleteMessage

packages/inputs/src/features/forms.ts:89–103  ·  view source on GitHub ↗

* Set the incomplete message on a specific node. * @param node - The node to set the incomplete message on.

(node: FormKitNode)

Source from the content-addressed store, hash-verified

87 * @param node - The node to set the incomplete message on.
88 */
89function setIncompleteMessage(node: FormKitNode) {
90 node.store.set(
91 createMessage({
92 blocking: false,
93 key: `incomplete`,
94 meta: {
95 localize: node.props.incompleteMessage === undefined,
96 i18nArgs: [{ node }],
97 showAsMessage: true,
98 },
99 type: 'ui',
100 value: node.props.incompleteMessage || 'Form incomplete.',
101 })
102 )
103}
104
105/**
106 * A feature to add a submit handler and actions section.

Callers 2

handleSubmitFunction · 0.85
formFunction · 0.85

Calls 1

createMessageFunction · 0.90

Tested by

no test coverage detected