|
|
Conditional fields and values
|
|
Date: 2005/12/05 20:39
|
By: mikko
|
Status: User
|
|
|
Karma: 107  
|
|
Platinum Joomlapolitan  | Posts: 2230 |   | |
|
There should be an option for fields and field values to be conditional, i.e. only display when a condition is met.
An example:
The site registers country and state. Initially The user sees a select list with available countries. When the user selects a country, another select with the available states appears.
Created a feature request for this: http://developer.joomla.org/sf/go/artf2444?nav=1
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The topic has been locked. |
|
|
|
Re:Conditional fields and values
|
|
Date: 2005/12/06 05:44
|
By: elesus
|
Status: User
|
|
|
Karma: 4  
|
|
Junior Joomlapolitan  | Posts: 39 |   | |
|
REALLY valuable thing.
My example:
The user picks if he/she is a student or teacher. Then the next drop down appears allowing to choose among grades (if student) or among departments (if teacher). СB3РD
|
|
The topic has been locked. |
|
|
|
|
Re:Conditional fields and values
|
|
Date: 2005/12/06 09:25
|
By: groenewaldd
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
Mine would be:
User selects 'Gender' as female: asks for Maiden name.
Would be really useful.
|
|
The topic has been locked. |
|
|
|
Re:Conditional fields and values
|
|
Date: 2005/12/06 09:37
|
By: pointri
|
Status: User
|
|
|
Karma: 26  
|
|
Gold Joomlapolitan  | Posts: 211 |   | |
|
That would be fantastic. A plugin making use of an AJAX class toggling fields as visible would be phenominal.
On the same lines, a way to set up calculated fields from the administrative screens would be great as well, picking up the value of one or several user fields to fill in another using php and/or Javascript.
One practical application that comes off the top of my head is to calculate a user's age from a birthdate selected using a calendar field.
Would it even be feasible to extend the field types as plugins? Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.
http://www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.
|
|
The topic has been locked. |
|
|
|
Re:Conditional fields and values
|
|
Date: 2005/12/06 18:58
|
By: elesus
|
Status: User
|
|
|
Karma: 4  
|
|
Junior Joomlapolitan  | Posts: 39 |   | |
|
You can implement Calculated fields with the help of plugins: user enters his birthday, submits the information and plugin using "onAfterRegistration" event calculates his age and adds it to the database.
However it is not possible to implement dependent fields in this manner... СB3РD
|
|
The topic has been locked. |
|
|
|
Re:Conditional fields and values
|
|
Date: 2005/12/06 19:56
|
By: mikko
|
Status: User
|
|
|
Karma: 107  
|
|
Platinum Joomlapolitan  | Posts: 2230 |   | |
|
I am pretty sure that one could implement this function by writing a plugin that only inserts some javascript in the UI. This would be quite clumsy though.
mikko My FREE plugins: List Tab, Conditions, Extended Selects, ReadPDF, Consolidated Tab, Privacy Policy, CB Tab Wrapper Module, CB List Wrapper Module, Simple Sort, Filter Columns, Super Search, Advanced Search, Template Switcher. More info and downloads.
Check out a demo of super search and sortable lists.
My commercial plugins: Advanced Profile Control (1.0.6 stable released)
|
|
The topic has been locked. |
|
|