Save select field with pipes value to database
-
Hello!
I’m working on a form that I need to attribute a custom ID to the city selected in [select] element, so I’m using pipes to show only the city name, just like this:[select* city “City 01 | ID1234” “City 02 | ID5678” “City 03 | ID3456”]
I need to save both values (before and after pipe) in database in separated columns, so the first solution I thought was to create Hidden Fields using the mail_tag [city], but unfortunately does not work.
Is there any way to use another field value to populate a hidden field?
Or, is there another way to save those values to database separately?
Thank you!
- The topic ‘Save select field with pipes value to database’ is closed to new replies.