xavier.batlle
Active member
- Local time
- Today, 16:51
- Joined
- Sep 1, 2023
- Messages
- 231
After reading this article by Colin @isladogs : https://www.isladogs.co.uk/settings-form-toggle/index.html, I thought it would be a good idea to find a simple way to convert existing forms with many checkboxes to a new modern style easily.
So, I came up with the idea of creating a form wrapper class that "converts" all the checkboxes to the new style.
To do this, you just need to create a command button with the checkbox name plus the suffix "_button" for each checkbox you want to convert and add a couple of lines of code to the form module.
The class updates the value and button style when changes the checkbox value or the current record.
This approach doesn't work on continuous forms!!!
So, I came up with the idea of creating a form wrapper class that "converts" all the checkboxes to the new style.
To do this, you just need to create a command button with the checkbox name plus the suffix "_button" for each checkbox you want to convert and add a couple of lines of code to the form module.
The class updates the value and button style when changes the checkbox value or the current record.
This approach doesn't work on continuous forms!!!
Attachments
Last edited: