Page 1 of 1

Toggle switch text to database

Posted: Tue Apr 29, 2014 5:48 pm
by Mike6730019

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.


Toggle switch text to database

Posted: Tue Apr 29, 2014 6:15 pm
by Maryna Brodina

Hello!

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