Hi everyone , currently we are facing a challenge with the way date field is getting formatted. We are using lightning:inputfield where the field is a date field. As long as we choose a value from date picker , it is fine and gets auto formatted as MMM d,yyyy. However when user chooses in any other format , it throws an error "Your entry does not match the allowed format MMM d, yyyy.". How can we format the user input to MMM d,yyyy format that is expected or how can we turn off this validation coming from salesforce?
4 comentarios
@Greg Rewis Thanks for responding. As soon as the user enters a value in a different format in the lightning:inputfield (which is part of the lightning:recordEditForm ) , we get this error immediately. When the error occurs, I tried logging if we see any value as part of onchange event of the inputfield, but the value says as null.