Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Custom PCF check for required column

(0) ShareShare
ReportReport
Posted on by 5

I added a PCF Custom control to a column in model-driven app.
The column is required by a business rule but the form field is not mandatory (no red star and no check).

 

I tried to check if there was a property to control it in the code by I'm not able to access this property.

 

I can find is disabled or not (context.mode.isControlDisabled) but not if it's mandatory.

Any Ideas?

  • Matteo Veronesi Profile Picture
    5 on at
    Re: Custom PCF check for required column

    Thanks, for the further explanation.
    In the meantime I have solved it and can confirm that the module takes care of it itself.

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Custom PCF check for required column

    Hi @MatteoVeronesi , 

     

    You have access to isControlDisabled and isVisible, but required is not available (at least not in a supported way).
    The form will take care of it by itself though.
    If your PCF needs to behave different if it's required, you could make anothe property for the PCF (like required, of type boolean). It can be of type input or bound, it depends if you need to set the property at runtime or not. If the value can change, you can set it using additional form scripting or business rule. 
    Hope this helps!
    Kind regards,

    Diana

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard