JavaScript - How to validate a lookup field in sharepoint 2010 with javascript pre save() function
Asked By Bookworm on 28-Jun-12 08:27 AM
Hi,
i have a LOOKUP field "CITIES" in a sharepoint list.
I need to validate this field: for example: if (CITIES.selectItem.value=="Viena" ) than .....//code
i build a preSave() function in javascript , and put it into newform.aspx.
but i dont know how to make the validation.
if you have any idea pls share because it is very urgent to me and i have been stuck on it for few days.
thnx in advance