cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Drop Down box selected

Add a New Topic Reply to Post
Post

Marco - Guest

6:48 pm - August 20, 2008


Hi,

first of all thx for the fantastic plugin.

I'm using dynamic forms because i need some advanced customization; i want to higlight (select) a value in a "drop down select box" based on a "get variables".
Is it possible? Are there any examples?

I don't know the syntax to pre-select a value in the drop down.

Thx in advance.

Marco

Oliver - Admin

9:08 pm - August 20, 2008

posts 3656

The easiest way to find out the exact config string for a given input field type and certain (special) settings, is to set it up on the cforms admin page. Then copy & paste the complete string and dissect it.

For the 'drop down select box' it should be |set:trueright after the option, but double-check to be sure.

Dan - Guest

2:18 pm - August 21, 2008

I tried the |set:true but the option still does not come up as default.  I'm trying to have the default state in a select box show up as "florida".


State#Delaware|Delaware#Florida|Florida|set:true#Georgia|Georgia#Hawaii|Hawaii#Idaho|Idaho#Illinois|Illinois#Indiana|Indiana#Iowa|Iowa#Kansas|Kansas#Kentucky|Kentucky#Louisiana|Louisiana#Maine|Maine#Maryland|Maryland#Massachusetts|Massachusetts#Michigan|Michigan#Minnesota|Minnesota#Mississippi|Mississippi#Missouri|Missouri#Montana|Montana#Nebraska|Nebraska#Nevada|Nevada#NewHampshire|NewHampshire#NewJersey|NewJersey#NewMexico|NewMexico#NewYork|NewYork#NorthCarolina|NorthCarolina#NorthDakota|NorthDakota#Ohio|Ohio#Oklahoma|Oklahoma#Oregon|Oregon#Pennsylvania|Pennsylvania#RhodeIsland|RhodeIsland#SouthCarolina|SouthCarolina#SouthDakota|SouthDakota#Tennessee|Tennessee#Texas|Texas#Utah|Utah#Vermont|Vermont#Virginia|Virginia#Washington|Washington#WashingtonDC|WashingtonDC#WestVirginia|WestVirginia#Wisconsin|Wisconsin#Wyoming|Wyoming


Oliver - Admin

4:10 pm - August 21, 2008

posts 3656

I copy & pasted the above string into one of my forms and it works 100%. 'Florida' is preseleted, are you ineed running v8.6.2 (the feature was introduced recently)?

Add a New Topic Reply to Post


Reply to Topic: Drop Down box selected
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 1        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)