Skip to content

added requiredMessage and errorStyle for form fields #1858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

mehsaandev
Copy link
Contributor

@mehsaandev mehsaandev commented Feb 3, 2025

Ticket: #1853

EDL:

- Form:
            children:
              - TextInput:
                  id: testPassInp
                  required: true
                  maxLength: 3
                  maxLengthEnforcement: none
                  requiredMessage: Hello world
                  styles:
                    errorStyle:
                      color: pink
                    labelStyle:
                      color: transparent
              - Dropdown:
                  required: true
                  requiredMessage: hello world
                  label: Select Items
                  styles:
                    errorStyle:
                      color: blue
                  items:
                    - Hello
                    - World
              - RadioGroup:
                  id: radioIdGroup
                  required: true
                  requiredMessage: Radio required
                  styles:
                    errorStyle:
                      color: blue
                  items:
                    - label: Test
                      value: test
                    - label: World
                      value: world
              - TextInput:
                  id: testPassInp
                  required: true
                  requiredMessage: kasdhaskjdhkjasd
                  maxLength: 3
                  maxLengthEnforcement: none
                  styles:
                    labelStyle:
                      color: transparent
              - Button:
                  label: Submit Form
                  submitForm: true

Demo Video:

Screen.Recording.2025-02-03.at.5.19.39.PM.mov

@mehsaandev mehsaandev merged commit 0d9f511 into main Feb 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants