Skip to main content

Editable Grid Component - Columns

Options for the button, card, formula and field columns in the Editable Grid component

Columns control what each row of an Editable Grid shows and what users can do in it. This article covers the options for each column type.

To add a column to a grid, see Editable Grid Component.


Button column

Adding a button to a column allows the user to execute actions based on the data in the specific row the button is in.

Each button column will have the below options to configure.

  • Button type: Show a Link (clickable text), or a Button.

  • Button style: Show just Text, or an Icon, or Both.

  • Caption: Text shown inside of a button and hopefully named something far more descriptive than Button.

  • Width: Set the width of the button automatically (Auto) or set it with a fixed pixel size (Fixed).

  • Background: Background color of the button.

  • Font Color: Color of text font inside of button.

  • Default state: Default state of the button when the grid is first loaded. Choose between Regular and Disabled.

To delete the column, click the trash icon in the upper right corner of its panel.

Button column event

Under Column events, click Add Click to add actions that will occur when the button is clicked.

When customizing actions, you will be able to reference data of the row the button is in.

In the below example, a button column has been added, and the button pressed is on the third row with David Henderson as a contact.

When clicked, an Assign Value to Action Result is being run. The value assigned will be taken from the Name column as an action result, but only from the record of the row the button is clicked. In the Control list, the grid's columns appear as the grid's name followed by the column name.

So Editable_grid - Name will contain the value David Henderson, since that's the row the button was clicked on.


Card column

A Card column allows you to group up to six fields (including an image) in the same column.

Each card column will have the below options to configure.

  • Header title: the text shown in the header row of the grid.

  • Show title: Toggle the visibility of the title in the header.

  • Width: Set the width automatically (Auto) or fixed (Fixed), then choose a size of Small, Medium, or Large.

  • Fields: Selecting a field allows you to configure it to map to a specific field in the table. You can add up to six.

  • Show image: Toggle an image on the card.

To delete the column, click the trash icon in the upper right corner of its panel.


Formula column

The Formula column allows you to write an expression (formula) to evaluate a value.

Furthermore, you can click Build with AI to get Method to create the expression for you.

Each formula column will have the below options to configure.

  • Column type: A formula column is Read only.

  • Header title: the text shown in the header row of the grid.

  • Show title: Toggle the visibility of the title in the header.

  • Width: Set the width automatically (Auto) or fixed (Fixed).

  • Alignment: How the value is aligned within the cell of the grid: left, center, or right.

  • Expression: Type the expression here, or use Build with AI.

For information on expressions, see Expression Reference below.


Field column

A Field column allows you to show the data from a particular field.

There will be different options depending on the type of field chosen for the column. For more details, see Editable Grid Object - Field Column.


Expression Reference

Here’s a list of all the supported expressions with examples on how to use them:

General Rules

  • All field references must be prefixed with @
    (e.g., @fieldName).

  • String literals must be wrapped in ""
    (e.g., "Hello").

Basic Math Operators

Operator

Description

Example

Result

+

Addition

@Price + 5

Adds 5 to the value in @Price

-

Subtraction

@Total - @Discount

Subtracts @Discount from @Total

/

Division

@Amount / 2

Divides @Amount by 2

*

Multiplication

@Quantity * @UnitPrice

Multiplies @Quantity and @UnitPrice

%

Modulo

@Number % 3

Returns remainder when @Number is divided by 3

Logical Operators

Operator

Description

Example

Result

&&

Logical AND

@IsActive && @IsVerified

Returns true if both are true

||

Logical OR

@IsActive || @IsVerified

Returns true if either are true

Math Functions

Function

Description

Example

Result

Count(value1, value2, …)

Counts the number of provided values

Count(@Item1, @Item2, @Item3)

Returns count of non-null values

Sum(value1, value2, …)

Adds all values together

Sum(@Price1, @Price2, @Price3)

Returns total sum

Max(value1, value2, …)

Returns the highest value

Max(@Score1, @Score2, @Score3)

Returns highest score

Min(value1, value2, …)

Returns the lowest value

Min(@Score1, @Score2, @Score3)

Returns lowest score

Average(value1, value2, …)

Returns the average

Average(@Score1, @Score2, @Score3)

Returns mean score

Abs(value)

Absolute value

Abs(-5)

Returns 5

Tan(value)

Tangent of angle

Tan(45)

Returns 1

Sin(value)

Sine of angle

Sin(90)

Returns 1

Cos(value)

Cosine of angle

Cos(0)

Returns 1

Floor(value)

Rounds down

Floor(4.9)

Returns 4

Ceiling(value)

Rounds up

Ceiling(4.1)

Returns 5

Pow(value, exponent)

Power of a number

Pow(2, 3)

Returns 8 (2³)

Round(value, decimal places)

Rounds to decimal places

Round(5.678, 2)

Returns 5.68

Text Functions

Function

Description

Example

Result

IsEmpty(text)

Checks if text is empty

IsEmpty(@Description)

Returns true if @Description is empty

IsNotEmpty(text)

Checks if text is not empty

IsNotEmpty(@Name)

Returns true if @Name has content

Length(text)

Returns text length

Length("Hello")

Returns 5

Replace(text, replace, with)

Replaces part of text

Replace("apple", "p", "b")

Returns "abble"

Substring(text, start index)

Gets substring from start index

Substring("MethodCRM", 6)

Returns "CRM"

Substring(text, start index, length)

Gets substring of length

Substring("HelloWorld", 0, 5)

Returns "Hello"

Join(join value, value1, value2, …)

Joins non-empty values. However, see below.

Join("-", "A", "", "B")

Returns "A-B"

Date Functions

Function

Description

Example

Result

Date()

Returns current date

Date()

Returns today's date

Date(date)

Converts string to date

Date("2025-02-26")

Returns date object

Date(year, month, day)

Constructs date

Date(2025, 2, 26)

Returns 2025-02-26

Day(date)

Gets day of date

Day("2025-02-26")

Returns 26

Month(date)

Gets month of date

Month("2025-02-26")

Returns 2

Year(date)

Gets year of date

Year("2025-02-26")

Returns 2025

DayOfWeek(date)

Gets day of week

DayOfWeek("2025-02-26")

Returns Wednesday

DayOfYear(date)

Gets day of year

DayOfYear("2025-02-26")

Returns 57

TotalDaysBetween(date1, date2)

Days between two dates

TotalDaysBetween("2025-02-26", "2025-01-01")

Returns 56

TotalHoursBetween(date1, date2)

Hours between two dates

TotalHoursBetween("2025-02-26 12:00", "2025-02-25 12:00")

Returns 24

AddDays(date, delta)

Adds days to date

AddDays("2025-02-26", 5)

Returns 2025-03-03

AddMonths(date, delta)

Adds months to date

AddMonths("2025-02-26", 1)

Returns 2025-03-26

AddYears(date, delta)

Adds years to date

AddYears("2025-02-26", 2)

Returns 2027-02-26

Conditional Functions

Function

Description

Example

Result

If(condition, TrueExpression, FalseExpression)

Returns value based on condition

If(@Age > 18, "Adult", "Minor")

Returns "Adult" if @Age is greater than 18

Formatting Functions

Function

Description

Example

Result

Format(value, formatting)

Formats number

Format(12345.678, "#,###.00")

Returns "12,345.68"

Format(value, formatting, CultureCode)

Formats as currency

Format(100, "C", "en-US")

Returns "$100.00"



​Alternate Join

Although the Join function will concatenate values together, it is not the only way. The formula field itself will concatenate all values together, regardless of join.

For example, let's say you are using these fields:

  • @BillAddressAddr1 = 410 Adelaide

  • @BillAddressCity = Toronto

  • @BillAddressState = Ontario

  • @BillAddressCountry = Canada

Using join, you could create the formula:

Join("</br>", @BillAddressAddr1, Join(", ", @BillAddressCity,
@BillAddressState), @BillAddressCountry)

The "<br/>" HTML tag is used for a newline, giving you:

410 Adelaide
Toronto, Ontario
Canada

However, this can also be achieved by:

@BillAddressAddr1 "<br/>" @BillAddressCity “, ” 
@BillAddressState “<br/>” @BillAddressCountry
Did this answer your question?