Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

How to implement select to save the value, not the ID

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
hujunhong
Posts: 7
Joined: Tue Apr 05, 2022 10:18 am

How to implement select to save the value, not the ID

Unread post by hujunhong »

If my product_bank select value is
0|AAA|1|BBB|2|CCC|3|DDD|
I want the database to store AAA, BBB, CCC
not is 0, 1, 2

How to use functions
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to implement select to save the value, not the ID

Unread post by kev1n »

Change it to

AAA|AAA|BBB|BBB|CCC|CCC|DDD|DDD
hujunhong
Posts: 7
Joined: Tue Apr 05, 2022 10:18 am

Re: How to implement slect to save the value, not the ID

Unread post by hujunhong »

kev1n wrote: Wed Apr 06, 2022 5:38 pm Change it to

AAA|AAA|BBB|BBB|CCC|CCC|DDD|DDD
OK thanks
Post Reply