I want to use a dropdown list for selecting quantity and came across this on the knowledge base which I thought would solve my query but it doesn't seem to work ....Has anyone any idea what the problem could be ?
The following is copied and pasted from the knowledgebase...I noticed that the "ProductReference" has now been changed in Actinic to "ProductID", so I corrected that in the copied and pasted code to read "ProductID", but I can't get it to work at all ???
..............
On the Design Tab, click on the 'Quantity:' text and look in the 'Layout Code' view (below Preview), you will see this bit of text highlighted "QuantityPrompt" followed by
<input type="text" name="Q_<actinic:variable name="ProductReference" />" size="4" value="<actinic:variable name="DefaultQuantity" />" />
Replace this line with the following code
<select name="Q_<actinic:variable name="ProductReference" />" />
<option selected value="<actinic:variable name="DefaultQuantity" />" />1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
The following is copied and pasted from the knowledgebase...I noticed that the "ProductReference" has now been changed in Actinic to "ProductID", so I corrected that in the copied and pasted code to read "ProductID", but I can't get it to work at all ???
..............
On the Design Tab, click on the 'Quantity:' text and look in the 'Layout Code' view (below Preview), you will see this bit of text highlighted "QuantityPrompt" followed by
<input type="text" name="Q_<actinic:variable name="ProductReference" />" size="4" value="<actinic:variable name="DefaultQuantity" />" />
Replace this line with the following code
<select name="Q_<actinic:variable name="ProductReference" />" />
<option selected value="<actinic:variable name="DefaultQuantity" />" />1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
Comment