You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validations need to be considered in each form section before the item can be saved. Not sure how I'm going to work this in currently.
FORM BUILDER
[name] - can not have spaces
[choices] - must have fields selected also
[file types] - must be a valid file type
The form builder group has some custom JS Validations that need to be added to be sure that these items are present.
Url
Trailing Spaces
Starting Spaces
Regular Expression
DATA ENTRY
FIELD SPECIFIC VALIDATIONS
Detailed Error for the validation issue at hand.
Textarea / Text Fields (Min, Max) for each format (words, and characters)
Between Min / Max for Characters
Between Min / Max for Words
Number (Min, Max, Step)
Number Step is divisible by the entered value
Number is in between Min / Max
Any Field (no duplicates modifier)
Checks Database for Duplicate Values
VALIDATIONS
Date (EDTF)
Email
Website
Character Limit
Word Limit
Alphabetical Characters Only
AlphaNumerical
AlphaNumerical Plus Spaces
Numerical
Numerical Plus Spaces
REFACTOR
Namespaces these items into classes which create an instance that will allow us to perform the needed tasks.
Actor This is the performer part of the namespace and it uses Single Responsibility Principle to call the other namespaced methods from the information provided by the form field.
Validator This class checks the hash and returns the items as an array that need to be validated
TextLength
Integer Between Range
Integer Step Length
Regular Expression
Date (EDTF)
Email
Website
Character Limit
Word Limit
Alphabetical Characters Only
AlphaNumerical
AlphaNumerical Plus Spaces
Numerical
Numerical Plus Spaces
CURRENT MFCS BEHAVIOR
The current behavior only shows the validations on submission and doesn't describe the error.
The error is provided on the top of the screen providing the name of the field only.
Text validations only work for min/max words and the validation in the validation dropdown menu.
Integers do not validate min, max, or step. Behavior is somewhat deprecated because it is never used (maybe because it never worked?).
NEW BEHAVIOR STEPS
Create JavaScript Event Controller for Validations
Use Timeout and Debounce to keep from submitting many times on keyup
Create Controller and API for Validations
Test Controller for API Validations
Use JavaScript to return the error and show the validations.
The text was updated successfully, but these errors were encountered:
The validations need to be considered in each form section before the item can be saved. Not sure how I'm going to work this in currently.
FORM BUILDER
The form builder group has some custom JS Validations that need to be added to be sure that these items are present.
DATA ENTRY
FIELD SPECIFIC VALIDATIONS
VALIDATIONS
REFACTOR
CURRENT MFCS BEHAVIOR
NEW BEHAVIOR STEPS
The text was updated successfully, but these errors were encountered: