Start a conversation

Calculations in the Form Exchange

You can find a lot of predefined calculations in our Form Exchange, or provide your own calculations for others to use. We hope that our users will share calculations they have created and feel may be useful for other Castor users too.

1. Login to the Castor Form Exchange

You can access the Castor Form Exchange via direct link or through Castor - click on 'Form Exchange' in the 'Support' menu accessible in the top right corner.  You are required to log in before you can share or download any forms - you can use your Castor account credentials to access the Form Exchange.


You will be redirected to the homepage, from which you can navigate around the different sections:

  1. Home: Here you can see an overview of the form exchange and step by step instructions on how to share your forms or use forms already created by others.
  2. How to use: This page will give you a more in-depth explanation of how to use the Form Exchange, including features such as upvoting, form languages and approved forms.
  3. Calculations: In this tab, you can submit calculations and view/download calculations submitted by others. More information about this tab is explained below.
  4. Study forms: In this tab, you can submit your own designed forms and view/download study forms submitted by others.
  5. Reports: In this tab, you can submit reports you have created and view/download reports submitted by others.
  6. Surveys: In this tab, you can submit surveys you have created and view/download survey forms submitted by others.
  7. Your username: By clicking your own username and selecting 'My forms', you can view your own submitted forms and calculations. You can also log out of the form exchange site by clicking 'Log out'.


2. The Calculations tab

To submit or find calculations, click on the Calculations tab. This will lead you to the 'Calculations' screen, as shown below: 


  1. Submit your calculation: Submit a calculation.
  2. Filter: You can search for calculations by typing key words into the 'Filter' bar.
  3. Order by: You can sort the listed calculations by either Downloads, Rating, Title, or Upload date by selecting one of the options in the dropdown menu. Use the adjacent arrows to view the calculations in ascending or descending order.
  4. Use calculation: Click on "Use calculation" or on the title of a calculation to see more information about the calculation template and view the calculation.

3. Using a calculation

If you have found a calculation you would like to use, click on "Use calculation" or on the title of the calculation. The calculation template will then be displayed:


  1. The title of the calculation you want to use.
  2. Details about the calculation itself and the field requirements for the calculation are listed. Make sure you have these variables in your study if you want to use this calculation.
  3. If you find a certain calculation very useful, you can upvote it so other users know it can be helpful.
  4. The calculation template that will perform the desired calculation is presented here. Copy this code to input it into your study calculation field.
  5. You can enter values for the above variables to test the calculation. This will automatically update the following fields:
  • Syntax check: The system will automatically confirm if your JavaScript is valid.
  • Final formula: Here the calculation to test is shown. Notice that your variables defined above will responsively change this script.
  • Result: The output of the calculation will appear here.

You can also provide comments and questions on the calculation. This can be used to provide other useful tips or ask the developer a clarifying question.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Castor Support Team

  2. Posted
  3. Updated