Hello,
is it possible to both use regular validation in eForm and combine this with the Filter command to do formatting on certain fields? F.e. we need to format zip-codes, phone-numbers etc. to a certain standard for later-on data-analyses. So we would like to first filter the field-data (f.e. remove spaces, or certain characters like - , etc.) and then validate the resulting value using the build in eForm validation. Can this be done in the form field definitions themselves?
Olaf
No that’s not possible out of the box with eForm but you can achieve this by using the eFormOnValidate event. This event is triggered once all fields are correctly validated. In your event function you can then apply your filtering to any of the fields you want.
I would check into a js to format the fields before validation. It could be triggered on focus. I have seen this a lot recently with credit card numbers and phone numbers to remove the -.