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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Enable button on a Form

(0) ShareShare
ReportReport
Posted on by 9,061 Super User 2026 Season 1
Hi All,
 
I want to enable a button on the form when all data is loaded to make sure all records are included. How can I achieve that?
I am working on Standard form and the button is created through extension on Form.
 
Regards,
Waed
I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi Waed, Are you able to click button while data is loading on form? I think system will go in non responsive mode if we do that. If not able to click while data loading then you can enable it anywhere as per requirement, like on active method of datasource if you want to enable or disable button based on certain values in a record.
  • GirishS Profile Picture
    27,833 Moderator on at
    Hi waed,
     
    System doenst know the whole record is loaded.
    You need to find out whether full record is loaded based on some condition and enable or disable the button on the active method of the datasource.
     
    Thanks,
    Girish S.
  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at
    Hi Girish S.,
     
    What about  FormDatasource.allRowsLoaded() it check if the whole records are loaded or not. Can I use it by enable button on activated event handler of form.
     
    Regards Waed
  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at
     
    Currently I can click button and the code will only apply to the loaded records.
     
    Regards,
    Waed
  • GirishS Profile Picture
    27,833 Moderator on at
    Thats the question i am asking how you are confirming that all records are loaded?
    By default all the records will be loaded in the form unless there is any range filters.
     
    Thanks,
    Girish S.
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    I haven't tried it but check if this article helps.
     
    https://axatoz.wordpress.com/2013/11/24/get-number-of-records-in-a-formdatasource/

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans