Avatar of Melodi Roberts
Melodi Roberts
Flag for United States of America asked on

htp.formselectoption single description and multiple values

I need to store valid degree codes, major codes and concentration codes separately, while displaying the descriptions for these in a form list of values all concatenated together.

Is there a way to display a single description (value) , but store in more than one form element (name)?

I can store the degree, major and concentration codes as one value and then parse out the codes from this; however, it seems there should be an easier way.  Perhaps there is some way that I can use javascript on the form.selectoption??

Thanks for any tips.

Avatar of undefined
Last Comment
Robert Schutt

8/22/2022 - Mon
Robert Schutt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Melodi Roberts

Thank you for your feedback. I have not had time to get back to this code as I am working on another project.  I am sure that this will help so will accept this as an answer and close it out. Thanks so much.
Melodi Roberts

Thank you so much. I am learning so much with the example you posted.
Robert Schutt

Glad to help. Please do return here to post your findings when you have checked it out because there is a chance other people find this solution when struggling with a similar problem and if it didn't help you it could be important for them to know why/how. I will keep monitoring so a follow-up question is possible.

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy