Jump to content

Dropdown custom field key value pair


vincitytaymodaimo

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated