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

    (@codepeople)

    Hi,

    Yes, that can be easily done with the plugin. Just put the input field for the original value and the conversion formula in the calculated field.

    Thank you for your interest in the plugin!

    Thread Starter krishna

    (@krishnacivilread)

    the field must be reversible suppose
    one field is in kgs and other field is in grams

    if i enter 2kgs in one field it should automatically show 2000gs in gram field

    Same if i enter 6000gs in gram field it would show in kgs field is that possible?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Yes, that can be done. For doing that insert two calculated fields on the page and uncheck the “read only” checkbox in the field settings. For each field add the related formula, for example if the fields are “fieldname1” (kg) and “fieldname2” (g) then add the following formulas (one on each field) to create a kg to g conversion:

    “fieldname1” formula:

    fieldname2/1000

    “fieldname2” formula:

    fieldname1*1000

    … that will do the “reversible” trick.

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

The topic ‘Unit converter’ is closed to new replies.