Notifications
Announcements
No record found.
Hi all,
i want to enable/disbale a button on a from based on Enum value. but activate method was already used on the form. can someone please provide some information how to achieve this?
Hi Nara Sheshu,
where is this enum stored? Is it in the table that is shown on the form? If yes, then indeed the active method of the form data source is the correct place for triggering your code.
What do you mean by "activate method was already used on the form"?
Quite often there's a method called "updateDesign" on the form, and this method is called from the active method of the form data source. I recommend to do this - then the code is easy to read and maintain, and you don't clutter the active method with a lot of code.
What do you mean by already used?
If the button's enable/disable property is tied to a different condition, you need to review the code and combine the conditions.
Active method is used by other condition on the form.
Hi,
Maybe you need merge the logic to the same method. Hope this can help you.
hi,
you can always use form datasource active method for this logic and if you want to use this logic based on some specific condition then you can write your logic at the end of this method, means after all system's logic write your logic.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader