• Resolved samgardiner

    (@samgardiner)


    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 3 years, 9 months ago by samgardiner.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @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

    (@samgardiner)

    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.