LearnNewsExamplesServices
Frontmatter
id5128
titleform.Container: async getFormState()
stateClosed
labels
enhancementstale
assigneestobiu
createdAtDec 4, 2023, 2:25 PM
updatedAtSep 12, 2024, 4:29 AM
githubUrlhttps://github.com/neomjs/neo/issues/5128
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 12, 2024, 4:29 AM

form.Container: async getFormState()

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Dec 4, 2023, 2:25 PM

the logic is similar to isValid(), but will contain 4 different states. the return value is a string (enum)

  • clean => all fields are clean (untouched)
  • error => at least one field is invalid
  • valid => all required fields are valid
  • inProgress => at least one field is valid, at least one field is clean
tobiu added the enhancement label on Dec 4, 2023, 2:25 PM
tobiu assigned to @tobiu on Dec 4, 2023, 2:25 PM
tobiu referenced in commit 57a0350 - "form.Container: async getFormState() #5128" on Dec 4, 2023, 2:35 PM
tobiu referenced in commit a1c37f3 - "#5128 updated the logic & adjusted apps/form to use the new method for SideNav updates" on Dec 4, 2023, 4:05 PM
tobiu referenced in commit 46ec062 - "#5128 empty & required TextFields must not count as invalid" on Dec 11, 2023, 12:36 PM
tobiu referenced in commit 269313b - "#5128 form.field.Text: useAlertState_ & styling" on Dec 11, 2023, 4:10 PM
tobiu referenced in commit 35ecb29 - "#5128 form.field.Text: isEmptyAndRequired()" on Dec 11, 2023, 4:20 PM