Title: Adding invisible fields
Last modified: May 19, 2018

---

# Adding invisible fields

 *  Resolved [GreaterWash](https://wordpress.org/support/users/greaterwash/)
 * (@greaterwash)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-invisible-fields/)
 * I would like to pull in invisible fields with every from submission. Seems easy
   enough based on the below article:
    [https://www.gkogan.co/blog/save-url-parameters/](https://www.gkogan.co/blog/save-url-parameters/)
 * How would someone go about doing this through your plugin?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-invisible-fields%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/adding-invisible-fields/#post-10298750)
 * Hello [@greaterwash](https://wordpress.org/support/users/greaterwash/),
 * Summarizing, you want populate fields in the form with the values of URL’s parameters.
   I’ll try to describe the process with an example.
 * Assuming that the URL parameters are:
 * param_a, param_b and param_c
 * and you want populate the form’s fields: fieldname1, fieldname2 and fieldname3
   with the previous parameters respectively:
 * You simply should insert three shortcode to generate the javascript variables
   from the URL’s parameters, and a piece of javascript code to define the default
   values of fields in the content of the webpage (it is the same webpage where 
   is inserted the form) as follows:
 *     ```
       [CP_CALCULATED_FIELDS_VAR name="param_a" default_value=""]
       [CP_CALCULATED_FIELDS_VAR name="param_b" default_value=""]
       [CP_CALCULATED_FIELDS_VAR name="param_c" default_value=""]
       <script>
       cpcff_default = { 1 : {} };
       cpcff_default[1][ 'fieldname1' ] = param_a ;
       cpcff_default[1][ 'fieldname2' ] = param_b;
       cpcff_default[1][ 'fieldname3' ] = param_c;
       </script>
       ```
   
 * More information in the following links:
    [https://cff.dwbooster.com/documentation#javascript-variables](https://cff.dwbooster.com/documentation#javascript-variables)
   [https://cff.dwbooster.com/documentation#populate-form](https://cff.dwbooster.com/documentation#populate-form)
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Adding invisible fields’ 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/)

## Tags

 * [UTM tracking](https://wordpress.org/support/topic-tag/utm-tracking/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/adding-invisible-fields/#post-10298750)
 * Status: resolved