Skip to content

Conversation

@BingerCoder
Copy link

When I use more than one Happy in one form, the config alway be written in each happy

for example:

  • There are four input in one form, mobile, captcha, mobile verify code, password, and two button named send-code and submit
  • At first,I must click send-code button to get verify code of my phone, so this is the first form validate with happy,the function of happy is to require from server.
  • Then I get the verify code of mobile, I type it to the input and finished other fields, click submit button. Now it's the second form validate, and function of happy is submit form data to server.
  • So the two form validate have to use two happy, I can custom my rule and action to check or do sth, but the config is not keep raw in this case.In fact, the first config is changed like second config.

It is my point.

…en in each `happy`

for example:
* There are four input in one form, mobile, captcha, mobile verify code, password, and two button named `send-code` and `submit`
* At first,I must click send-code button to get verify code of my phone, so this is the first form validate with happy,the function of happy is to require from server.
* Then I get the verify code of mobile, I type it to the input and finished other fields, click submit button. Now it's the second form validate, and function of happy is submit form data to server.
* So the two form validate have to use two happy, I can custom my rule and action to check or do sth, but the config is not keep raw in this case.In fact, the first config is changed like second config.

It is my point.
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.

1 participant