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 :
Small and medium business | Business Central, N...
Unanswered

Can we disable buttons in request page?

(0) ShareShare
ReportReport
Posted on by 92

I need to disable print and preview button in request page according to conditions, If I need to disable that Print/Preview button where should I write that code ?

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Hello,

    I'm not sure if this does what you need, but you can run the request page separately like this:

    OnRun()

    Parameters := REPORT.RUNREQUESTPAGE(1);

    MESSAGE(Parameters);

    //(Parameters is a Text variable)

    Then in the code you can afterwards decide whether to print or safeaspdf or some other action.

    That's just one idea.

  • Community Member Profile Picture
    on at

    The disabled attribute can be set to keep a user from using the <input> element until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the <input> element usable. Tip: Disabled <input> elements in a form will not be submitted!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 570 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 291 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans