Function that toggle the dropbox as popup on small screen like mobile
The id of the Dropdown element
Whether the pattern is enabled
Return Message Success or message of error info if it's the case.
Function that toggle the dropbox as popup on small screen like mobile