Mike6730019
Posts: 0
Joined: Wed Mar 12, 2014 5:50 pm

Toggle switch text to database

Hi. I have a toggle switch in my app with the the 'on' text set as 'HIT' and the 'off' text set as 'MISS'. I've mapped it to my database but it only sends the 'on' or 'off' results and not the modified text. Is there a script I can add to change those values? I checked some other posts but can't find an example.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Toggle switch text to database

Hello!

You can add JS in mapping http://docs.appery.io/documentation/r... and depending on value return necessary line.

Return to “Issues”