Skip to Content
0
K C
Apr 29, 2016 at 11:13 AM

Validate input field values from ValueHelp or Entity Set

850 Views

Hello Experts

I have created a valuehelp to display some Member names. User can also type and get suggestions from the ValueHelp and input the name.

But I need to provide a validation that user should only be able to save valid Member name values from Value Help and give error if Name is not in that list.

I do not want to provide functionality where only value Help can be used and User cannot type Value.

How can I do that thru JS.

Below is my field details:

As you can see Entityset used is MemberDetailSet and corresponding Membername is shown in ValueHelp field. I need to validate any other value than the EntitySet/Membername shoud give error.

Metadata structure:

Attachments