Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

goivvy
Copy link

@goivvy goivvy commented Feb 8, 2022

All available form validation rules sorted alphabetically.

Purpose of this pull request

This PR adds a form validation rule list.

Fixes #8951

whatsnew
Added a remarkable Validation rule list to the Frontend Developer's Guide.

@dobooth
Copy link
Contributor

dobooth commented Feb 8, 2022

Wow! Amazing effort here!

Copy link
Contributor

@BarnyShergold BarnyShergold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a brilliant piece of work!

Please correct as many changes by accepting the suggestion on the repo itself. Please DO NOT correct locally and then push a new commit - this is because it will be really difficult to check all the updates requested have been done as there are over 60.

You also need to do the following -

  1. Add this new file to the TOC file - src/_data/toc - around line 189 - currently there is no way to get to your new page
  2. Add a SYMLINK to the new file in the src/guides/2.4 area

Please also fill in the PR description as requested by the WIKI - this is very important.

Well Done!


### validate-state

It checks for a valid state.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type of state?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@dobooth dobooth added 2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes New Topic A major update published as an entirely new document labels Feb 9, 2022
Konstantin G and others added 4 commits February 9, 2022 12:43
@goivvy
Copy link
Author

goivvy commented Feb 9, 2022

@BarnyShergold done, please review.

Copy link
Contributor

@BarnyShergold BarnyShergold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome turnround speed!
I've made one correction and a suggestion to improve clarity and then it's good to go to
@dobooth - might be worth a second reviewer as there is so much - I may have missed something.

But this is an awesome addition.

</form>
```

Field `field-5` holds a credit card type, possible values are: `SO`, `SM`, `VI`, `MC`, `AE`, `DI`, `JCB`, `DN`, `UN`, `MI`, `MD`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there are so many and some are not obvious - I'd recommend turning this list into a small table and defining what each of the 2 letter codes are.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@goivvy
Copy link
Author

goivvy commented Feb 10, 2022

@BarnyShergold
fixed.

@dobooth
Copy link
Contributor

dobooth commented Feb 23, 2022

@magento import code to magento-devdocs/devdocs

@m2-github-services
Copy link

@dobooth the branch with the code is successfully imported into the magento-devdocs/devdocs repository. Branch name: imported-goivvy-devdocs-9356.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.x Magento 2.3 related changes 2.4.x Magento 2.4.x related changes New Topic A major update published as an entirely new document Progress: done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List of all validation rules and examples for custom form
6 participants