Is there a way using either Google Forms Apps Script or Google Sheets formulas to set the value different from the label in multiple choice selections on Google Forms?
What I am looking for is something similar to this in html:
<select name="cartype" form="myform">
<option value="33">Volvo - $33</option>
<option value="34">Saab - $34</option>
<option value="35">Opel - $35</option>
<option value="36">Audi - $36</option>
</select>
In Apps Script (docs) I can set the multiple choice values using setChoiceValues(values) but this gives the same string for the input value and display text.
values String[]the array of choice values, which respondents see as labels when viewing the form
Alternatively, it would be fine if it was possible to strip the currency values only from the cell in Google Sheets and use in a sum formula.
The end result I am looking for is a Google Form that lists options with prices, then outputs to a spreadsheet that can sum the price totals automatically.
Edit:
Is it possible to do a reference to a list in sheets to get the number value?
Sheet 1 - Results from Google Form spreadsheet:
| Name | Car | Days |
| Foo | Saab - $34 | 4 |
| Bar | Volvo - $33| 2 |
Sheet 2 - Reference lists:
| Car | Price |
| Volvo - $33 | 33 |
| Saab - $34 | 34 |
| Opel - $35 | 35 |
| Audi - $36 | 36 |
Sheet 3 - Totals:
| Name | Car | Days | Total |
| Foo | {price from reference list} | 4 | B1*C1 |