Announcement

Collapse
No announcement yet.

Using a drop down list for selecting Quantity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using a drop down list for selecting Quantity

    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>

    #2
    I think you must have made a mistake it works for me. See attachment.
    Attached Files

    Comment


      #3
      Mmmmmm.......Now I'm puzzled I will try again !

      I think I need a coffee break and take another look at it in five minutes

      Thanks

      Comment


        #4
        Thanks drounding

        I have now got it working.

        I don't know what the problem was but it didn't seem to like one of my layouts. It worked when I used one of the original Actinic layouts as you had done.

        So I just started again with a new unamended layout, got it working with the drop down lists and then changed anything extra I needed and it is now still working.

        Thanks.

        Comment


          #5
          Use ProductID as it will fail if you use ProductReference with duplicates.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Originally posted by NormanRouxel View Post
            Use ProductID as it will fail if you use ProductReference with duplicates.
            Thanks Norman - will do.

            Comment

            Working...
            X