Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Select Menu Label

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Select Menu Label

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

Return to “Issues”