customs forms popup issue

hi team, i have create a form popup in mendix (as shown in screenshot below)  and i want that , whenever the user clicks anywhere outside the form then the form should close .  or whenever user clicks where the red color arrow points , then the popup should closed. Please help how can i achieve it . Thanks.  
1 answers

I do not think this is achievable with just Mendix; you will need to insert custom Javascript on the page.