0

I am trying to validate the Input and some other fields using Presaveaction function.

function presaveaction(){
if($('input[title*="FieldName"]').val().trim()){
alert('FieldName should not be left empty');
return false;
}
return true;
}


It is working fine all the scenarios except the one below. enter image description here
After adding a link to the Multiple lines of text field through an above option, input and other fields are not available in the js scripts and returning null.

Any help on this?

4
  • Can you please add your current code to your question by editing it? Commented May 19, 2021 at 18:33
  • I have added it.
    – Xavi
    Commented May 19, 2021 at 18:39
  • You cannot validate multiple lines of (rich) text column like this because it does not store the value in single "input" element. Check this and this Commented May 20, 2021 at 2:33
  • I am not trying to validate multiple lines of text field using the above script. Until I am adding the SharePoint link to the multiple lines of text, I can validate any field using custom scripts. But after that scenario, all validations are getting failed and returning null. Please read my question.
    – Xavi
    Commented May 20, 2021 at 15:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.