Hello,
I need to create a custom slot type that allows me to receive on purpose any of the synonyms but then use the value for that slot. However, when I use the code <this.$inputs.device.value> it returns the synonym said by the user but not the main value of the slot.
For example if the user says “video beam” which is a synonym, I want to use “PROJECTOR”.
Is it possible?
How can I relate the synonym to the main value of the slot?
the custom slot code is the following:
"name":"Device",
"values":[
{
"value":"AC",
"synonyms":[
"air conditioner",
"CA",
"air conditioning",
"air",
"central air",
"climatization",
"air cooling",
"cooling air",
"AC"
]
},
{
"value":"PROJECTOR",
"synonyms":[
"video beam",
"conference",
"epidiascope",
"flim projector",
"movie projector",
"cine projector",
"cinema",
"slide projector",
"front projector",
"projector",
"overhead projector"
]
}