Page 1 of 1

Select Menu Label

Posted: Thu Jul 02, 2015 9:27 pm
by Mike6979865

Hi,

I want to save the Selected Option Label and NOT value into the database from a select menu. I mapped "Selected" to the the database field. However, the value of the option is getting saved. I want to save the label name into the database.


Select Menu Label

Posted: Fri Jul 03, 2015 5:22 pm
by Serhii Kulibaba

Hello Mike,

You can get it via JS.
Just add this JS on the service's request parameter:

return Apperyio("mobileselectmenu").find(":selected").text();

here mobileselectmenu - name of the select component