As an alternative to the coding, you can use Playmaker actions.
Actions can be found in the zip archive under:
After extracting action files, you can use native pop-ups actions. In action browser
actions can be found under the Mobile Native Pop-ups tab
Here is the list of actions currently available with the plugin: