Hi,
I am using this code to change the text on toggle
codeTiggzi("texttoggle").parent().find(".ui-slider-label-a").text("Yes");
Tiggzi("texttoggle").parent().find(".ui-slider-label-b").text("No");/code
all works very well
I need to read the value of the toggle in and include it in an email, this is the code I am using in data mapping to read values in the email
I am unsure if the code to read the toggle is correct because it returns the value of "on and off"
rather than "yes and no" that has been change with the css
codevar name = localStorage.getItem("_name") + "\n";
var mobile = localStorage.getItem("_mobile") + "\n";
var pickupvalue = Tiggzi('fromselectmenu').val() + "\n";
var destinationvalue = Tiggzi('toselectmenu').val() + "\n";
var timevalue = Tiggzi('timeselect').val() + "\n";
var datevalue = $('input:eq(5)').val() + "\n";
var passangervalue = Tiggzi('passangerselect').val() + "\n";
var textvalue = Tiggzi('texttoggle').val() + "\n";
return " Name: " + name + " "+ "Mobile Number: " + mobile + " "+ "Pick Up From: " + pickupvalue + " "+ "Destination: " + destinationvalue + "Date: "+ datevalue + " "+ "Time: " + timevalue + " "+ "Passangers: " + passangervalue + " "+ "Text Back: " + textvalue + " ";code/code/code