keyboard_arrow_left Back to Knowledge Base

Dividing a Calculator Into Steps

This is an advanced feature that uses the JSON format to extend a calculator’s functionality. This feature lets you create multiple steps for your calculator.

Follow the steps below to load an example of the JSON structure, and start dividing your calculator into steps.

  1. Click the Gear icon on the right.
  2. Click the Advanced Settings section.
  3. Click the Load Example button.
  4. Click Step Example to load the JSON structure.

NOTE: Advanced features are only available either in the calculator preview or on the published version. The calculator editor does not currently show these features.



JSON Example

  1. The first number in commas tells you which step you are modifying. You can change the sequence anyway you like but you have to change the true and false statements for forward and backward according to the first and the last steps. Make sure that all the steps are numbered, and that the first step is given the number '1'.
  2. label – on this line you can name the step after the colon symbol in quotation marks.
  3. forward – on this line you can write true or false after the colon symbol. True means that there will be another step, false means that this is the last step. This line is always false in the last step.
  4. backward - on this line you can write true or false after the colon symbol. This means that there are steps before this one and you can go back. This line is false only in the first step.
  5. backwardText – on this line you can name the backwards step button after the colon in quotation marks. If you don‘t give it a name it will be an arrow symbol by default.
  6. forwardText -on this line you can name the forwards step button after the colon in quotation marks. If you don‘t give it a name it will be an arrow symbol by default.
  7. elements – on this line you can write which elements you want to use in the step after the colon symbol, in brackets and quotation marks divided by commas.
  8. Every step is contained between curly braces and each step is divided by a comma, except for the last step.
Build calculator for free!