What is Computation?
Computation is a module designed to assist you in creating forms with "computed fields." These fields calculate their values based on other fields’ inputs, similar to Excel formulas.
Supported Formulas
Most Excel formulas can be applied in Computation on RDrive, including:
SUM
VLOOKUP
AVERAGE
LEN
IF
Important Notes for Efficient Use of Computation Functions
Avoid Referencing Entire Columns: Do NOT use references like A:A or B:C (referencing entire columns) in your formulas. This practice can significantly degrade performance, especially in large datasets. Always specify a defined range that contains meaningful data (e.g., A1:A100) to ensure your computations run efficiently.
Merged Preset Spreadsheets: Be aware that if you have a spreadsheet with a merged preset, any data added to a sheet with the same title will override the existing content.
Triggered Calculations: Computed values in RDrive only update when the input value they depend on is edited. This means that if a source value changes, the computed field will reflect this change automatically, ensuring that outputs remain current without manual updates.
Avoid Using the Same Field for Input and Output: Do not configure a field to act as both input and output simultaneously. This can lead to circular references and unexpected behavior in computations.
Output Fields and Conditional Editing: Output fields function based on the conditional editing rules set up. If a field is not editable in its current status, the output will not display. Ensure conditional editing rules are correctly configured for the desired behavior.
Setting Up Computation for a Form - (Using a Petty Cash Report as an Example)
Step 1: Design the Form Layout
Edit or create fields and assign field types using the Form Wizard.
Design the form layout in the Form Wizard.
Tips: To make the Output field uneditable manually, you may set the field type to Read Only.
The following field types are NOT supported as output values:- Image
- Signature
- List (team, user, list)
- Checkbox
- Pass/Fail/NA
Step 2: Access the Computation Dialogue
Use ⌘/Ctrl + 6 or select Computation from the ⋮ (More Tools) menu to open the dialogue.
Step 3: Edit the Spreadsheet
Click EDIT to open the spreadsheet.
Download the Excel template via the ⋮ menu in the Computation dialogue.
Open the downloaded Excel file.
Design the input and output cells, and enter the desired formulas.
(Click here to download the practice Excel file.)Save your edits in Excel and upload the file back into RDrive.
The Excel file has been uploaded. Please review the spreadsheet. If any functions are not applicable, an error message will appear.
The spreadsheet will save automatically. Click the X icon to return to the computation dialogue.
⚠️ Warning: Avoid creating or edit the spreadsheet directly on the web. Always use the downloaded Excel file to ensure formula compatibility.
Step 4: Map Fields to Spreadsheet Cells
Assign input and output values:
Input Fields: Any field type.
Output Fields: Any field type except image, signature, team list, user list, or dropdown list.
Click Select in the Computation dialogue to map form fields to spreadsheet cells.
Highlight fields in blue by clicking on them.
Press ✔ (bottom-right corner) to confirm, or click outside the dialogue to cancel.
Step 5: Finalize the Setup
Complete input and output mapping.
Input Completed.
Please repeat the above steps for the Output to assign values. Click OK to finish.
Save the configuration.
Don't forget to click Publish to apply the updates to the form.
Example of Computed Field Behavior
Scenario:
Field:
Total
Formula:
SUM
of values entered in theAmount
field.
The value in the Total
field automatically updates whenever the Amount
values change.
Additional Resources
If you have further questions, contact support for assistance.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article