im trying to make a choice menu but the only problem is it isnt letting me have the color name and the hex code i dont need the hash. is there any way i canhave both or where i canhave the color name and not the hex code? i can only use javascript. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

im trying to make a choice menu but the only problem is it isnt letting me have the color name and the hex code i dont need the hash. is there any way i canhave both or where i canhave the color name and not the hex code? i can only use javascript.

{name:"awesomeTextColor",label: "color for awesome people", type:"choice",choice1:"#0000ff blue",choice2:"#ff0000 red",choice3:"00ff00 green",choice4:"#000000 black",defaultValue: "#0000ff blue"},

4th May 2017, 7:04 PM
eli
4 Answers
+ 1
i need the name of the color because its for someone that doesnt know hex and i need the hex so i can color the text
4th May 2017, 7:08 PM
eli
+ 1
that didnt work but thanks for trying to help i really apreciate it.
4th May 2017, 7:27 PM
eli
+ 1
i think it needs the word choice in it example it works if i just have it choice1: "#00ff00" but i need the color name so the person knows what it is
4th May 2017, 7:29 PM
eli
+ 1
the word choice1 isnt shown so all you would see in the example i put is 00ff00.
4th May 2017, 7:40 PM
eli