Title: Multiple values
Last modified: February 16, 2021

---

# Multiple values

 *  Resolved [samgardiner](https://wordpress.org/support/users/samgardiner/)
 * (@samgardiner)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-values-3/)
 * Hi!
 * I need to add two values to a radio button. Is this only possible by adding JS
   or can it be achieved in the UI?
 * Thanks
    -  This topic was modified 5 years, 3 months ago by [samgardiner](https://wordpress.org/support/users/samgardiner/).

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-values-3/#post-14058085)
 * Hello [@samgardiner](https://wordpress.org/support/users/samgardiner/)
 * You can assign only one value per choice. However, you can enter the values with
   a custom structure you can process in the equation.
 * For example, assuming the radio buttons field is the fieldname1, and you want
   to enter two numbers per choice and sum them in the equation. This case of use
   is not very useful but allows you to understand the process. Enter the values
   with a structure similar to 3|4, 5|9, and 32|56
 * And then implement the equation as follows:
 *     ```
       (function(){
       var v = fieldname1.split('|');
       return SUM(v[0], v[1]);
       })()
       ```
   
 * Best regards.
 *  Thread Starter [samgardiner](https://wordpress.org/support/users/samgardiner/)
 * (@samgardiner)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-values-3/#post-14058124)
 * Thank you very much, I think I’v got it.

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

The topic ‘Multiple values’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [samgardiner](https://wordpress.org/support/users/samgardiner/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-values-3/#post-14058124)
 * Status: resolved