Start a conversation

Check if a report was added

Check with calculation

To check if a report (e.g. an SAE form) was added, you can check if a required variable name on the report has been defined. You need the following syntax to achieve this:

'##allowempty##';
if("{field_on_AE_report}" == "'NA'"){
    'No';
} else {
    'Yes';
}

 

Note that '##allowempty##' is required in Castor to calculate something when a value is not set. Add the syntax above to your own calculation field. Make sure you replace field_on_AE_report with a (required) variable that appears in your own report.


Set up a validation message

Now set up a validation message on this calculation field to warn the user that the report is required:

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Tonya

  2. Posted
  3. Updated