Title: Dropdown Selection Allows Manual Entry
Last modified: August 30, 2016

---

# Dropdown Selection Allows Manual Entry

 *  Resolved [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/)
 * Is it possible to have the dropdown selections , but last selection being optional
   for manual entry either directly on Dropdown or on a selection result?
    Thanks
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854230)
 * Hi,
 * Yes, that’s possible. You simply should use dependencies. Please, click in the
   link “Show dependencies” in the choices section of the DropDown field, and select
   the fields in the form that are dependent to the last choice.
 * So, if the last choice in the DropDown field is selected, the form will display
   the fields defined as dependents.
 * Best regards.
 *  Thread Starter [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854248)
 * Thanks
 *  Thread Starter [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854311)
 * Hi
    What about when there is more than one dropdown selection? I belive then 
   we have to use calculation results. It is then not possible to enter the manual
   entry ? I have the following calculated field and want to use “**???**” for manual
   entry Any suggestion? Thanks (function(){ if(fieldname103 == 1 && fieldname104
   == 1) return 625; if(fieldname103 == 1 && fieldname104 == 2) return 625; if(fieldname103
   == 1 && fieldname104 == 3) return 1200; if(fieldname103 == 2 && fieldname104 
   == 1) return 225; if(fieldname103 == 2 && fieldname104 == 2) return 225; if(fieldname103
   == 2 && fieldname104 == 3) return 225; if(fieldname103 == 3 && fieldname104 =
   = 1) return 250; if(fieldname103 == 3 && fieldname104 == 2) return ; if(fieldname103
   == 3 && fieldname104 == 3) return 100; if(fieldname103 == 4 && fieldname104 =
   = 1) return 400; if(fieldname103 == 5 && fieldname104 == 1) return **???**; })()
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854315)
 * Hi,
 * As in the rest of the equations, if the the dependent field is the fieldname105,
   and you want return its value if the value of fieldname103 is 5, and the value
   of fieldname104 is 1, you simply should edit the validation rule as follows:
 * `if(fieldname103 == 5 && fieldname104 == 1) return fieldname105;`
 * Best regards.
 *  Thread Starter [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854321)
 * Hi
    Is that possible to return 625 to the field 105 as well? if(fieldname103 
   == 1 && fieldname104 == 1) return 625 ??; Thanks
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854326)
 * Hi,
 * I really do not understand your question. If the fieldname105 field is a calculated
   field whose value would be 625 if the value of the fieldname103 field is 1 and
   fieldname104 field is 1, you can use any of following equations:
 * `IF(AND(fieldname103==1, fieldname104==1), 625, '')`
 * or
 * `(fieldname103==1 && fieldname104==1)?625:''`
 * or
 *     ```
       (function(){
       if(fieldname103==1 && fieldname104==1) return 625;
       return '';
       })()
       ```
   
 * or a combination of previous equations.
 * Best regads.
 *  Thread Starter [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854329)
 * Hi
    What I am trying todo as in the link in the first part of the two column 
   fieldset [](http://www.teknoyangin.com/atrium-16/)
 * When dropdowns selected
    -Occupancy -Sprinkler
 * A) It would give related HRR (kW/m2), Fire Perimeter, Fire Area
    B) When “other
   occupancy” selected from the drop down customer to insert manually, HRR (Kw/m2),
   Fire Perimeter, Fire Area (m2) As two dropdown combination required, this makes
   it more complicated Thanks
 *  Thread Starter [dustundag](https://wordpress.org/support/users/dustundag/)
 * (@dustundag)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854330)
 * [http://www.teknoyangin.com/atrium-16/](http://www.teknoyangin.com/atrium-16/)
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854338)
 * Hi,
 * You should to understand how the dependent fields work. If a dependent field 
   is disabled, its value is zero, so, you can use it in the equation without worrying
   about whether the dependent field is active or not.
 * For example, if the fields: fieldname1, and fieldname2 are dependent to the choices
   1 and 2 of a DropDown field, and you want return as the result of the equation
   associated to the calculated field, the value of this fields in function to the
   choice selected, the equation would be as simple as: fieldname1+fieldname2
 * If you want to create dependencies in function to more than one field in the 
   form, you should use a calculated field as auxiliary to define the dependencies.
   Please, visit the following link:
 * [http://blog.net-factor.com/how-to-use-dependencies-between-fields-in-the-form/](http://blog.net-factor.com/how-to-use-dependencies-between-fields-in-the-form/)
 * However, if you need additional help in your project, I can offer you a custom
   coding service, through my private support page:
 * [http://wordpress.dwbooster.com/support](http://wordpress.dwbooster.com/support)
 * Best regards.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Dropdown Selection Allows Manual Entry’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/dropdown-selection-allows-manual-entry/#post-6854338)
 * Status: resolved