vincitytaymodaimo Posted September 14, 2018 Share Posted September 14, 2018 I have some custom fields(drop down) fro the products and those custom field details are stored in the table tblcustomfields I can see that there is a field fieldoptions, which stores drop down values as a comma separated list like 1,2,3 etc. in this case we will see 1,2 and 3 in the drop down like <option value="1">1</option><option value="2">2</option><option value="3">3</option> Is it possible to populate a custom field dropdown as key value pair? So that the customer will see keys and while submiting the form , diffrent values will be posted. So the final html should be <option value="1">user1</option><option value="2">user2</option><option value="3">user</option>. Is it possible? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted September 15, 2018 Share Posted September 15, 2018 Sure, it possible. Just use | to separate key/value like follows: 1|user1,2|user2,3|user3. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.