Title: Field from another form
Last modified: June 11, 2026

---

# Field from another form

 *  Resolved [Michael Rieder](https://wordpress.org/support/users/teamtacho/)
 * (@teamtacho)
 * [3 days, 5 hours ago](https://wordpress.org/support/topic/field-from-another-form/)
 * Dear Team
 * I’m using e.g. getField(fieldname24|n, ‘.highscore’).val() in order to transfer
   one field value to another form on the same page. It works perfectly.
 * I also using getField(fieldname24|n, ‘.grundumsatz’).val() from a second form
   on the same page for the same purpose. I don’t get the value.
 * My two questions:
 * where can I find the right form name (which is not the title)?
 * can I use the form ID instead of the name. Maybe that solves my problem.
 * Best Regards Michael
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffield-from-another-form%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [3 days, 4 hours ago](https://wordpress.org/support/topic/field-from-another-form/#post-18935280)
 * Hello [@teamtacho](https://wordpress.org/support/users/teamtacho/),
 * Thank you very much for using our plugin.
 * The second parameter of the `getField` operation is not the form name. Instead,
   it is a selector used to identify the specific form instance on the page.
 * For example, the following code works correctly because you have assigned the
   class name `highscore` to the main form:
 *     ```wp-block-code
       getField(fieldname24|n, '.highscore').val()
       ```
   
 * Please note that custom class names are assigned to forms through their shortcodes,
   for example:
 *     ```wp-block-code
       [CP_CALCULATED_FIELDS id="6" class="highscore"]
       ```
   
 * It is also important to keep in mind that the plugin automatically assigns a 
   CSS class based on the form ID. For instance, if a form has the ID `7`, the plugin
   will automatically add the class:
 *     ```wp-block-code
       cff-form-7
       ```
   
 * Therefore, you can reference a field in Form 7 as follows:
 *     ```wp-block-code
       getField(fieldname24|n, '.cff-form-7').val()
       ```
   
 * However, if the same form (Form 7) is inserted multiple times on the same page,
   all instances will share the same automatically generated class name, creating
   ambiguity. In that case, the recommended solution is to assign a unique custom
   class to each form instance through its shortcode and use those custom class 
   names in your `getField` calls.
 * Thank you.
 *  Thread Starter [Michael Rieder](https://wordpress.org/support/users/teamtacho/)
 * (@teamtacho)
 * [3 days, 3 hours ago](https://wordpress.org/support/topic/field-from-another-form/#post-18935330)
 * That’s it! Thank very much.
 * If I hadn’t already given you 5 stars, I would definitely do so now
 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [3 days, 1 hour ago](https://wordpress.org/support/topic/field-from-another-form/#post-18935478)
 * Hello [@teamtacho](https://wordpress.org/support/users/teamtacho/)
 * Thank you very much.
 * Best regards.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffield-from-another-form%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 3 replies
 * 2 participants
 * Last reply from: [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * Last activity: [3 days, 1 hour ago](https://wordpress.org/support/topic/field-from-another-form/#post-18935478)
 * Status: resolved