Auto-Complete control validaiton update for pega 8.7
Pega out of the box control Auto-Complete gives you the ability to type in few characters and based on the characters it gives you back the results based on the Source provided which can be Data page, RD etc.
Auto-Complete as a control does not validate the value selected or typed in manually is valid according to the source list of values. How can I validate the autocomplete if not select any value from dropdown list.
But right now I applied the same as Sushanth Kommera said earlier post.
See the post . But in Pega 8.7 it's not working for me.
So, overcome this issue I found one solution. And it's work perfectly for me.
1. Add OOTB 'lodash' JS and 'AutoCompleteValidation' (attached) files to your harness.--- You can download the file from previous post. Click Here
2. In autocomplete control, go to presentation tab and include 'autocomplete-validate' in 'Cell read-write classes'.
3. Add on change action & call the "setupAutoCompleteValidation" function
***Edited by Moderator Marije to change Content Type from Question to Discussion t; added DKS***