2 tricky parts.
One: did you debug & see the code works or breaks?
Two: can subject entity be queried & filled in by auto-complete?
Hi Muhammad,
I suspect its the web api request which is not returning the data and hence not shwing it in the auto complete. I would suggest to verify the auto complete feature with some hardcode values. Once it is working fine, change the source to pull it from web api.
Refer this link for detailed - www.powerobjects.com/.../double-down-with-crm-2016-introducing-two-new-features-web-api-and-autocomplete
Hope this helps.
The addOnKeyPress function only works on text fields see community.dynamics.com/.../185831 . community.dynamics.com/.../option-set-lookup-or-autocomplete has a good overview of the various options you could use...