Alert on lookup (none) value
Posted: 02 Feb 2018
Hi,
I have a lookup column that is not required, so by default SharePoint set the value to (none).
I want to force the user to select a value without to set a required.
For a text field I am using this code in the save onClick event, but this is not working for a lookup column
********************************
if (!fd.field('Body').value())
{
alert('Please, insert the Description.');
return false;
}
fd.sourceFormParam(decodeURIComponent(window.location.href));
return true;
**********************************
Can you help me
Thanks
Catherine
I have a lookup column that is not required, so by default SharePoint set the value to (none).
I want to force the user to select a value without to set a required.
For a text field I am using this code in the save onClick event, but this is not working for a lookup column
********************************
if (!fd.field('Body').value())
{
alert('Please, insert the Description.');
return false;
}
fd.sourceFormParam(decodeURIComponent(window.location.href));
return true;
**********************************
Can you help me
Thanks
Catherine