Skip to content

Button

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

➡️

The Button field displays a button that can open any URL from your Airtable base. It can also be used to open static URLs or displayed as a text link.

See more Fields in the Form Field Reference

image

  • How to Add a Field to Your Form

  • Field Configuration

  • Field Labels

  • Field Status

  • Customize Your Button

  • Color

  • Label

  • Icon

  • Size

  • Severity

  • Outlined

  • Raised (Shadow)

  • Rounded Border

  • URL (Static URL)

  • Link (Turn into Text-only link)

  • Tooltip

  • Classes

  • Group

  • Group Button Icon

  • Badges

  • Link Open Options

  • Extra Options (Advanced)

  • Danger Zone - Delete Field from Form

NOTE: This field will only Display on the Edit Record mode and will not refresh live with field edits. If live updates needed, use our Formula - On2AirFormula - On2Air field instead.

Here’s how to add Airtable Fields or On2Air Custom Fields to your Form

➡️

How to Add Airtable Fields and On2Air Custom Fields to Your FormHow to Add Airtable Fields and On2Air Custom Fields to Your Form

Title

- Add a title to be displayed above the field as the main name. To leave blank, add a single space

By default, this is the name of your field in Airtable. You can use a different field name than your base and it will not affect the field name in your base.

Sub Title

- Add a subtitle to be displayed above the field. To leave blank, add a single space

You can use text in this field and you can use Markdown to increase text size, bold, or italics

Related: Use Markdown with On2Air FormsUse Markdown with On2Air Forms

Helper Text

- Add helper text to be displayed below the field. To leave blank, add a single space

You can use text in this field and you can use Markdown to increase text size, bold, or italics

Related: Use Markdown with On2Air FormsUse Markdown with On2Air Forms

Example:

image

image

  • Display Field Content - Determine how to this field is displayed. Display Field as Text or other Displayable format (not editable).
  • Hidden Field - Determine how to this field is displayed. Field is Included but not Visible.

Documentation in Progress

You can customize your button further

  • Click Extra Options > View Advanced Options
  • You’ll see a list of various settings available to customize - See below for more details

image

Change the color of your button

There are 2 options to do this -

  1. In the classes field enter the color you need from this list of colors

image

image

  1. In the style field, type backgroundColor: color_name
  • You can enter in basic color names or you can use any CSS color from this list

Using Color name

Using Color name

Using CSS color code

Using CSS color code

image

image

You can change the label on the button in your Airtable base or in On2Air

image

image

Add an icon to your button - enter in the class name as pi-iconname

See icon options

image

Defines the size of the button, valid values are “small” and “large”

image

Defines the style of the button, valid values are “secondary”, “success”, “info”, “warning”, “danger”, “help”

image

Add a border class without a background initially

image

Add a shadow to indicat elevation

image

Add a circular border radius to the button

image

Add a Static (never changes) URL to your button

  • Add your URL in the url field in the Advanced settings

image

Add a link style to the button - display as a text link

image

Enter the Content of the tooltip

image

Any Prime React classes to be added

💡

Learn more about this: Style Your Forms and Fields - CSS Class StylingStyle Your Forms and Fields - CSS Class Styling

Add a visual block before or after the input field with text or icon. Set the content, bgColor, or color for either the before or after or both

View Icon Options

Add an icon before or after the input field. Set the content, and location for the icon. Location options: left or right

View Icon Options

Buttons have built-in badge support with badge and badgeClassName properties.

image

Badge = the badge on the button

BadgeClassName = the style of the badge

By default, the button link will open in a new tab.

You can change the way a link opens to one of the following options

  • open in the same tab/window (for non-embedded forms)
  • open in the same tab/window (for embedded forms)
  • open in a popup window

In the Button Field settings

  • Go to Extra Options > Advanced Options settings for a Button field.
  • In ‘location’ field, type in one of the 3 options:

self - open in the same tab/window (for non-embedded forms)

top - open in the same tab/window (for embedded forms)

popup - opens in a popup window

in popup, you can also set dimensions of the popup if you enter the sizes and sides similar to this: popup:left=100,top=100,width=320,height=320

You can add additional formatting options to your form fields with our advanced options. Please note these are being added as needed and are not all documented yet. Please reach out to us via chat if you have any questions

  • Click Extra Options > View Advanced Options

For Button options, see the list

The ultimate collection of design-agnostic, flexible and accessible React UI Components.

primereact.org

PrimeReact | React UI Component Library

Delete your field from the form

  • Click Remove

image

  • Click Yes, I want to delete this field from the form

image