Drop Down Menu

hayes121 12 Jun, 2014
Hi guys i think i am doing something wrong on my site and was looking for some clarification, I have a drop down menu on my form but when ever I enter in the drop down data and click save the form only shows 5-6 out of the 15 or so options I entered, Am I doing something wrong? do I need to tell the form how many items to display?
hayes121 12 Jun, 2014
Thanks for the reply calculus, but none of these things seem to help my problem, the drop down is just a drop down by value + label list, but it only prints out a few of the options and not all of them
GreyHead 13 Jun, 2014
Hi hayes121,

There's no limit in ChronoForms so the problem may be some special character in your options list. Can you paste it here? and show us where the break comes.

Bob
hayes121 13 Jun, 2014
I have attached a picture of the drop down menu on the front end of the site and the following is what what i am entering into the menu :
15 =Dragon (€15)
35 =First 31.7 (€35)
10 =Flying 15 (€10)
15 =Glen  (€15)
50 =IRC 0  (€50)
40 =IRC 1 (€40)
35 =IRC 2 (€35)
25 =IRC 3 (€25)
15 =Laser SB3 (€15)
25 =Puppeteer (€25)
25 =Ruffian (€25)
25 =Shipman 23 (€25)
35 =Sigma 33 (€35)
10 =Squib (€10)
25 =White Sails (€25)
GreyHead 14 Jun, 2014
Hi Hayes121,

The value before the = sign has to be unique - in the version you see in the form all of the duplicated values have been over-written by the later option with the same value. This FAQ may help.

Bob
hayes121 14 Jun, 2014
Bod thanks for the reply, I have read the FAQ but i am still uncertain on how to fix the problem, do I need to create an array with each of the value in php?
GreyHead 14 Jun, 2014
Hi Hayes121,

You need to make sure that the values (the part before the = sign) are unique. i.e. all different.

a) You can include the price as a part of this, and use a custom code action to strip it out in the On Submit event.

b) or, you suggest, you can create an array that will look up the price from the unique value.

c) or, if you have many of these and they change then you could save the prices and descriptions to a database table and look them up from there as needed.

Bob
This topic is locked and no more replies can be posted.