Fix - Issue 1592 - Dynamic form - Number validations are working, but the percentage values are not getting saved #1601
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's in this Pull Request?
Fix for issue #1592
Problem
The number validations are working like a charm, but if we are using a percentage column and trying to save the value to that column, it is not saving the values. Below is the screen for the validations
Steps to Reproduce
The form will not be saved.
Solution
The properties number field if chosen as 'Shown as percentage', the minimum and maximum values will be retrieved as below,
wherein, the properties of number field without choosing 'Show as percentage', the minimum and maximum values will be retrieved as below.
And at
onSubmitClick
, the validation for percentage column is failing due to the minimum and maximum values for the percentage column.While validating a number, the percentage column is validated as below,

While
onSubmit
the same validation for the percentage column is not done, instead, the minimum value and maximum value is checked with the default values as 0.1 and 1 respectively.So, a new method is introduced to check the validation again while the user is submitting the form as below,

Thanks,
Nishkalank