How can I manually add another option to a dropdown list?
I am using the following code to get my options where the user will be able to select ‘Gloss’ or ‘Matt’ laminate, but there could also be a third option, None!
Thank you, I thought that was the answer and the code is almost perfect but not quite right.
The ‘None’ option shows on-load but the ‘gloss’ add ‘matt’ only shows when the previous selection has been made. I need None to only show when the other options show.
I appreciate the link you posted, I’ve looked through it and I don’t get how that can help me, what am I missing?
I understand you’re trying to help me work out the answer for myself rather than give it to me on a plate but having searched this website all day, I’m no further forward.
Personally I need to be given working code and then have it broken down line by line to tell me what it does. If there were examples like this, I think I would be further along on my journey.
Thank you. when you get in front of a desktop I would really appreciate it if you could help further. Based on your previous question and don’t laugh because I don’t understand the code but I came up with two versions, both don’t work.
#1 - Tried incorporating your code and the code from the link
You should spend some time learning how expressions work, incomparably less than “learning js”, otherwise you’ll keep running into problems and you’ll waste more time in vain.
@Rifad Thank you. Your code works and although I don’t understand it yet, I will analyse it until I do.
One issue I have found with it though and I will try and see if I can edit it to make it work but the dropdown menu with the added option ‘None’ shows after the first selection is made, it’s not until the last dropdown selection has been chosen that the final matt and gloss options show. I would prefer it to all show at the same time which is the reason I’ve not accepted it as an answer.
Thank you and it does answer my question but I need to sort this one little part.
I have also noticed issue before and I am not sure if that was a bug or If i was doing something wrong. Let’s see if someone from community come up with solution for that.