WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] Enter data into either field: other field responds F->C or C-> F (3 posts)

  1. bherd
    Member
    Posted 1 year ago #

    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/

  2. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. bherd
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic