'NSIS: In a custom page how to enable a Dir Request Input if a checkbox is checked

I have set the DirRequest inputs flag to Disabled initially, how do i set it to Enabled once a checkbox is checked true in my custom page?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source