Share feedback, ideas and get community help

Updated 3 months ago

Numeric menu and data transformation

Can someone help me create a numerical menu and convert it into names? I'm having trouble building the logic.

Example

Plain Text
Great! You chose the Starters category. Here are the available options:

Starters Menu:

1. Guacamole with Nachos - $15.00
2. French Fries- $12.00
3. Grilled Cheese - $18.00

Please enter the corresponding number for the desired item. If you want to return to the main menu at any time, simply type "0". I'm here to assist! 


Where the user enters 1 or 2, 3, etc., I want it to convert this input 1 into the corresponding name.

Plain Text
What is the quantity of: Guacamole with Nachos?
Attachment
image.png
D
L
2 comments
Numeric menu and data transformation
First option is to search in docs for "Map item with same index" . Second, create a javascript code to check in your list if the chosen option is into it and take a substring with the text you want. Third, create a separate var list with names options and get your value according the chosen user option.
Add a reply
Sign up and join the conversation on Discord