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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How set visible property

(0) ShareShare
ReportReport
Posted on by 3,045

Hi All,

I want to set the visible property of the existing field based on condition, how I can do that?

I have the same question (0)
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    You can assign a field or variable to the Visible property.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Example of it from standard:

    OnOpenPage trigger calls this function to set the variable value assigned to fields

    local procedure SetDocNoVisible()

       var

           DocumentNoVisibility: Codeunit DocumentNoVisibility;

           DocType: Option Quote,"Order",Invoice,"Credit Memo","Blanket Order","Return Order",Reminder,FinChMemo;

       begin

           DocNoVisible := DocumentNoVisibility.SalesDocumentNoIsVisible(DocType::Order, "No.");

       end;

  • Suggested answer
    UmeshPandit Profile Picture
    35 on at

    Hope this link can help: demiliani.com/.../

  • Pooja Karki Profile Picture
    3,045 on at

    This we can do for new field and group but I want to know how we can do for an existing field.

  • Pooja Karki Profile Picture
    3,045 on at

    I want to set the visible property of the existing field.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Do a page extension. Try this resource: docs.microsoft.com/.../devenv-page-customization-object

    Has a good code snippet with exact modification you are looking at

  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello,

    I have gone through your question and find out that you want to add visible property as per any condition. In my case I have given the example of field but you can use same thing into action. you just need to pass custom variable.

    Here is the piece of Code:

    Visible-Property.png

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

  • Pooja Karki Profile Picture
    3,045 on at

    Thanks for a response this I have tried for new field control it is working but for any existing field control it is not affecting.

  • Pooja Karki Profile Picture
    3,045 on at

    This I tried but I want to make visible based on some condition.

  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello,

    You can try for existing fields like this.

    Visible17.PNG

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans