Showing results for 
Search instead for 
Did you mean: 

Allow a PCF field component to flag a field as invalid and stop page save.

Based on Use SetNotification to show error messages?  could I suggest that you make it possible for a powerapp component framework field component to flag it's value as invalid and stop the page from saving until the error is corrected 


I understand that this is currently possible using the clientapi but that requires additional work and a code (Javascript) or low code (Business rules) solution where this method would allow a zero code solution where the only thing required would be to add the field to the form, change the field type to the component and add the appropriate validation within the controls parameters / configuration.

Status: Under Review
Level 8

I forgot another reason for things being handled here.


By moving error handling within the component the out of the box language pack functionality can be used for translating error messages - something that is rarely implemented within Javascript scripts.

Level: Powered On

I support the idea. This will also open up the opporutnity to develop validator controls (like validator controls).


Ideally, we want

  1. A function implementation where we define validation logic and return a boolean value, and
  2. A property to set a custom error message

The implementation could be quite similar to Dynamics Portal client-side validation.


I understand this could be a fundamental change to the existing form validation and could be oustide of PCF development.

PowerApps Staff
Status changed to: Under Review