Simple math calculation

Simple math calculation

estudiosestudios Posts: 52Questions: 0Answers: 0
edited October 2013 in General
Is there any way to add a simple calculator in the Editor Form?. May be is not needed to do it inside the Editor...may be a floating window but the result should go directly to a field in the Editor Form.

The user may need to make a simple calculation (100 * 0.12) and the result go directly to one of the fields in the Editor form.

Thanks a lot

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The approach I'd probably take myself is to create a new field input type which has an input box with a calculator image next to it on the right. When clicked upon a little calculator will appear in a floating box as you say and allow calculations to appear. There isn't a built in field of this type, and I don't have one readily available I'm afraid, but this tutorial goes through how such plug-ins can be created: http://editor.datatables.net/tutorials/field_types

    Allan
This discussion has been closed.