Select Page
How to Run a Script in Your Base for the User Field Type

How to Run a Script in Your Base for the User Field Type

🔴 On2Air Forms has been shutdown to focus on our On2Air Backups Airtable app Learn more about automated Airtable backups - on2air.com

This will allow you to generate the list of Users in your Airtable base in order to use the User/CollaboratorUser/Collaborator Field Type

  • Open the Extensions panel in the Airtable base connected to your form
image
  • Click Add an extension
image
  • Click the Scripting extension
image
  • Click Add extension
image
  • Paste the following code into the Scripting extension and click Run
/**
 * On2Air Forms - Import Base Collaborators to On2Air Form
 * 
 * Instructions: Paste this code into a Scripting Extension in the Base associated with the Form.
 * Run the script and Copy the Output (all of it). Paste the Output into the text area in the Form Designer under the Sources Tab.
 * @Copyright - On2Air
 */


const users = base.activeCollaborators
const asString = JSON.stringify(users)
output.text(asString)
image
  • Copy the code output
image
  • Paste the code into the Source > User/Collaborator text area
image
  • You can now see a list of Users from your base
image
➡️
Go back to the User/CollaboratorUser/Collaborator field type