I have the following question:
I have a field, that is not required in the form, but i do want to validate it. SO here is the code for the field
the form doesn't submit but at the same time the validator_msg is not showing anywhere.
I also tried the <cms:show validator_msg /> but still no success.
I have a field, that is not required in the form, but i do want to validate it. SO here is the code for the field
- Code: Select all
<cms:input name='qty1' id='qty1' type='text' search_type='decimal' validator='non_negative_decimal' placeholder="Quantity" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Quantity'" validator_msg='required:Please enter valid quantity' />
the form doesn't submit but at the same time the validator_msg is not showing anywhere.
I also tried the <cms:show validator_msg /> but still no success.