Hi,
I am customizing my custom list's NewForm for an OOB application. List has a column for choice(Individual, Team) and people picker to enter employee names.
Based on the selected value for the radio button on my New Form, i need to validate people picker to check if it has multiple values or single value is selected.
I tried to update my JSLink reference by adding another reference of a JS file like -
~sitecollection/Style Library/SpotAwards/app.js|~sitecollection/Style Library/SpotAwards/validation.js
The second file has the validation function as below -
function PreSaveItem(){
if ("function"==typeof(PreSaveAction))
{
return PreSaveAction();
}
return true;
}
function PreSaveAction() {
alert("Test Pre Save validation");
}
But, the above function is not getting called.
Could you please suggest what else can i try to achieve the same ?
T