Skip to main content
Skip table of contents

Coda 4.0 compatibility issues causing formulas to break

Problem

The buttons in the Security and Encryption for Coda template are not functioning correctly and appear greyed out (pic below). As a result, you cannot perform certain functions in the template.

Coda Vault error 20240108.png

Environment

Security and Encryption for Coda templates copied before October 2023 will be impacted.

Cause

After the release of Coda 4.0 in October 2023, some formulas are no longer working in the Security and Encryption for Coda templates. The change has primarily impacted the Activate() function in the older templates.

Resolution/Workaround


Method 1: Migrate your existing vault to a new template

This is the simplest method to implement and involves minimal changes.

As we do not store your vault keys in our database, you will need to move it from the old document to the new one. Here’s how to do this:

  1. First, download the new Vault Template from the Coda gallery.

  2. In your old document, go to Vault table > Columns and unhide Key.

  3. Copy the key.

  4. In the new vault template, sync your account.

  5. Once the vault from your account is synced, go to Columns and unhide Key.

Method 2: Replace the Activate() function with the new formula

  1. Copy the formula below:

CODE
RunActions(
SetControlValue(CreateInfoBox, ""),
SetControlValue(ActionInfoBox, ""),
SetControlValue(BinInfoBox, ""),
SetControlValue(TransferInfoBox, ""),
  1. Select a button to replace the Activate()function. In the example below, we will be changing the formula for the Create Vault button in the Vault template. Right-click on the Create Vault button. Then, go to Button Settings and click the On Click field.

  2. Replace the old formula with the formula you copied in step 1 and press enter.

    CODA Steps 20240108.png
  3. Repeat steps 1 to 3 with the following buttons in these templates:

Vault Template

  • Create Vault

  • Copy Key

  • Add Permission

  • Remove Permission

  • Delete

  • Restore

  • Delete Permanently

  • Update Vault

  • Transfer Vault

Secret Template

  • Create Secret

  • Bulk Action

  • Copy Secret

  • Assign Role

  • Remove Role

  • Delete

  • Restore

  • Delete Permanently

  • Update Secret

Secured Customer List Template

  • Create

  • Bulk Action

  • Copy Secret

  • Assign Role

  • Remove Role

  • Delete

  • Restore

  • Delete Permanently

  • Update

Online Gradebook Template

  • Create a grade

  • Copy Grade

  • Assign Role

  • Remove Role

  • Delete

  • Restore

  • Delete Permanently

  • Update

Secured Application Data Template

  • Create

  • Copy

  • Assign Role

  • Remove Role

  • Delete

  • Restore

  • Delete Permanently

  • Update

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.