Power Community

Power Community

Power Pages: Validate Note Control


Problem Statement

Sometimes, before submitting the form, you have to verify Note Control to determine if the user has uploaded the document or not.


You can write following JavaScript code on either Basic Form or Multi Step form

var HasNoteAttachment = $('.note').length;
var HasFileUploaded = $('#AttachFile').val();
if(HasNoteAttachment == 0 && HasFileUploaded == "")
    alert('Please upload document before proceed');
    return false;


To demonstrate, I have added a File Upload control to the Multi Step form. When I click Next to move on to the next step, I receive the alert message that is seen in the figure below.

This post was originally published on this site

- Advertisement -spot_img


Please enter your comment!
Please enter your name here

- Advertisement - Advertisement

Latest News

5 Benefits of In-App Notifications for Microsoft Dynamics 365 CRM users

For a successful sales process, you need to stay up-to-date with crucial sales information like deal closures, opportunities won,...

More Articles Like This

- Advertisement -spot_img