I would suggest to change the implementation of the new mask functionality.
If you choose to display the mask in the field (Parameter "Show mask in input") it is implemented as value="mask", which creates a problem, if the user will not add anything in this field --> the mask will be saved in the database.
Why not using placeholder="mask"?
A new parameter Placeholder would be good as well.
If there is a place holder, display it in the input field, if there is a mask and the parameter "Show mask in input" is "YES" than display the mask via the PLACEHOLDER and not via VALUE.
Talking about the VALUE -- The implementation in input template can still be improved.
As of now, if there is no VALUE parameter, it still shows it empty... example:
<input type="text" name="jform[fields][52]" id="field_52" value="" class="inputbox" style="width:50" aria-invalid="false">
just a little "optimization" .. :D
I would suggest to change the implementation of the new mask functionality.
If you choose to display the mask in the field (Parameter "Show mask in input") it is implemented as value="mask", which creates a problem, if the user will not add anything in this field --> the mask will be saved in the database.
Why not using placeholder="mask"?
A new parameter Placeholder would be good as well.
If there is a place holder, display it in the input field, if there is a mask and the parameter "Show mask in input" is "YES" than display the mask via the PLACEHOLDER and not via VALUE.
Talking about the VALUE -- The implementation in input template can still be improved.
As of now, if there is no VALUE parameter, it still shows it empty... example:
just a little "optimization" .. :D