Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to set a Default value for an option field in the page

(0) ShareShare
ReportReport
Posted on by

Hello guys , the issue is I want to specify an a default value for DOCUMENT TYPE in the cash receipt journals page only to be only payment , putting in considerations that putting init value in the table will change it for all journals and I don't want that !

any ideas ?  

*This post is locked for comments

  • DineshM Profile Picture
    238 on at
    RE: How to set a Default value for an option field in the page

    Hi ,How to set decimal field value  of table to suppose 100 so that it will come by default also where to write code in table ?

  • Luc van Vugt Profile Picture
    on at
    RE: How to set a Default value for an option field in the page

    Well, take advantage of the C/SIDE Development 101 webinars of NAV Skills on youtube. Search on youtube for "c/side development 101 series".

  • Community Member Profile Picture
    on at
    RE: How to set a Default value for an option field in the page

    I am Functional user of NAV 2013 R2.  Can i Learn Technical to customize in short time.

  • Community Member Profile Picture
    on at
    RE: How to set a Default value for an option field in the page

    my bad it worked actually , thanks Mr Amol 

    much appreciation

  • Verified answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: How to set a Default value for an option field in the page

    As Luc suggested You can write the code on OnNewRecord trigger

    Just write

    "Document Type" :="Document Type"::Payment;

  • Community Member Profile Picture
    on at
    RE: How to set a Default value for an option field in the page

    thank you for your reply BUT ,

     could u provide the code please?

  • Luc van Vugt Profile Picture
    on at
    RE: How to set a Default value for an option field in the page

    Let code do it in the OnNewRecord trigger (or even better in an event subscriber to this trigger).

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans