Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Hide the fields in page with the Requirement using C\AL code.

Posted on by Microsoft Employee

Hello All,

I need Help in the Following,

In dynamics Nav 2017,i have a field name sponsor it has options Datatype(Organization,Self,Vendor,Third Party).When i Select Organization in it the Organization Name field should be visible and reaming fields like (Vendor No,Third Party Name) should be disable.can any one explain me clearly.Hide-Quesition-in-MS.PNG

*This post is locked for comments

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Hide the fields in page with the Requirement using C\AL code.

    You need to use the field properties Visible and Editable properties. Assign the variable to those properties and handle TRUE or FALSE based on the conditions.  Check pages 21, 26 and 42. There are functions which are called on the OnOpenPage and on OnAfterGetRecord Trigger to handle it. 

  • Verified answer
    Hannes Holst Profile Picture
    Hannes Holst 5,767 on at
    RE: Hide the fields in page with the Requirement using C\AL code.

    Hi,

    Fields on the Page do have the property "Visible".

    This property can take boolean values to.

    You can check Page 21 "Customer Card". The fields "No." and "BlockedCustomer" are visible by using a boolean variable.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans