WordPress.org

Support

Support » Plugins and Hacks » Calculated Fields Form » [Resolved] Enter data into either field: other field responds F->C or C-> F

[Resolved] Enter data into either field: other field responds F->C or C-> F

  • Hi,

    I would like to make formulas that allow the user to adjust or enter any of the fields and the others field respond, I.E. any field could be an input or an output.

    For example a simple calculation of Fahrenheit to Celsius where each is a field: the user could enter a temperature into Fahrenheit by entering the first field and the second field would update showing Celsius or the user could enter Celsius and the Fahrenheit would update.

    This sounds like a loop so I assume a one time run trigger would be needed, hitting the return key for example.

    Regards,
    BH

    http://wordpress.org/plugins/calculated-fields-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    @codepeople

    Hi,

    I suggest consider a variant. Please, use four fields in your form , a pair of fields to convert from Fahrenheit to Celsius, and the other pair of fields to convert from Celsius to Fahrenheit.

    You can’t use only one pair of fields as you describe because occur an infinite loop.

    Hi, Thanks yes I thought about using four fields but that wasn’t the first choice.

    I see the loop which is why I wondered if it could be triggered to run once from the field that received the “enter” key.

    thanks for the response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Enter data into either field: other field responds F->C or C-> F’ is closed to new replies.
Skip to toolbar