Magento Ui form validator message callback not supported #20078
Labels
Component: Ui
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Preconditions (*)
Steps to reproduce (*)
Magento_Ui::js/lib/validation/validator.js
, using a callback as the validator's message.Magento_Ui::js/lib/validation/rules.js
already does this: https://github.com/magento/magento2/blob/2.1/app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js#L423-L463Expected result (*)
Actual result (*)
Additional Notes
function
, and if so, calls it, setting thethis
context appropriately.Proposed Solution
message
variable to the result of calling the message callback.Example (in Magento_Ui::js/lib/validation/validator::vailidate()):
The text was updated successfully, but these errors were encountered: