Skip to content

Commit

Permalink
FWF-3757: [Feature] Validation letter case changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonymol-aot committed Oct 25, 2024
1 parent 092b9bf commit 61066dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Form/EditForm/FormSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const FormSettings = forwardRef((props, ref) => {
const validateField = async (field, value) => {
let errorMessage = "";
if (!value.trim()) {
errorMessage = `${field} is required`;
errorMessage = `${field.charAt(0).toUpperCase() + field.slice(1)} is required`;
} else {
try {
const response = field === 'name' ? await validateFormName(value) : await validatePathName(value);
Expand Down Expand Up @@ -428,7 +428,7 @@ const FormSettings = forwardRef((props, ref) => {
{copied ? <i className="fa fa-check" /> : <CopyIcon />}
</InputGroup.Text>
</InputGroup>
{errors.path && <div className="validation-text">{errors.path}</div>}
{errors.path && <div className="validation-text mt-2">{errors.path}</div>}

</Form.Group>
</div>
Expand Down

0 comments on commit 61066dd

Please sign in to comment.