web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to know if a field is visiable before form is loaded

(0) ShareShare
ReportReport
Posted on by 645

My situation is when the form is loaded I need to know if one of my fields is visible, the reason is that some of my records are created in server side, and when the use opens them the rules of show/hide/mandatory are in a  mess... so to prevent the situation of trying to save a record with mandatory field that is invisible I need first to know if it's visible and then to set the mandatory attrs.
Thank you !

I have the same question (0)
  • Verified answer
    Alejandro Serdan Profile Picture
    Microsoft Employee on at

    Hi! 

    You can do it using the Client API. 

    With this approach you create a JavaScript resource with the following method on the Form OnLoad event which will return True or False:

    formContext.getControl('fieldschemaname').getVisible();

    getVisible (Client API reference)

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/getvisible

    Regards.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 62 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans