Smart Fields

A Video Tutorial is available for this topic Click Here to view

Smart Fields are a versatile tool that allows for the dynamic display of text, serving various purposes across different scenarios. They can be utilized for tasks ranging from visualizing date/time information (e.g. automatically updating copyright labels) to extracting EXIF data from a photo, and even displaying mathematical formulas or text animations.

When working with Smart Fields, they seamlessly integrate into text elements and buttons, presenting a bubble-like interface for easy editing. Simply clicking on the bubble opens up the Smart Field settings for further adjustments.

To insert Smart Fields, you can open the "Smart Field" submenu of the "Insert" menu, or use the dedicated button labeled "Insert Smart Field..." found in the Style inspector when editing text. Once inserted, Smart Fields can be edited, copied, pasted, or deleted just like regular text.


Insert Smart Field button in the text editor.

When previewing in the browser or viewing the published site, Smart Fields will function fully as intended, providing dynamic and interactive content to your users.

When you add a Smart Field to your text box, you are given the option of various types of fields. These are shown below.

Smart Field picker listing page data, calculations, image metadata and user account fields.

One of the most commonly used options will be the ‘Calculator’ Smart Field. When inserted into a text box, it looks like this.

A Calculator smart field token inserted in text.

Clicking on the ‘Calculator’ bubble will open a window where you can add your calculation. Result Expression Type chooses Numeric, Integer or String, and Digits sets the number of decimal places. Here is what it looks like.

Calculator field editor with a name, value insertion menu and empty expression.

The ‘Select value…’ dropdown will display a list of all input fields on the current page. These can be selected for inclusion in your calculation. When a field is included, it will show as a bubble containing the field name. To perform a calculation using fields, simply place a mathematical operand between the input field bubbles. Here is an example of simple addition.

Addition formula: return addend1 + addend2, using form-value tokens.

‘addend1’ and ‘addend2’ are input fields on the page. These fields are normal ‘Text Input’ elements found in Sitely’s toolbox. They have both been set to ‘Require a Number’. The ‘+’ operand between them tells Sitely to add the two numbers together. Below are some examples of basic math formulas that can be set in a ‘calculator’ Smart Field.

Simple Math

Result

Smartfield Formula

Multiplication:

Multiplication formula: return multiplicand * multiplier, using form-value tokens.

Difference

Subtraction:

Subtraction formula: return minuend − subtrahend, using form-value tokens.

Sum

Addition:

Calculator expression adding the addend1 and addend2 form values.

Quotient

Division:

Division formula: return dividend / divisor, using form-value tokens.

(enter some numbers in the fields to see the calculations working.)

Here is a practical example

A ceramic tile reseller may have a listing of products, each with an option to calculate how many tiles may be needed to tile a given floor area. Here is a typical listing on a catalogue web page that performs this function.

Square floor tile with a geometric wood and stone pattern, used in the area calculator example.

Indian-Style Ceramic floor tiles

60 cm × 60 cm

Enter your floor dimension in metres to see how many tiles you need.

Number of tiles

Tiles

We recommend ordering an extra

To cover potential breakages

The ‘Number of Tiles’ field is a smart-field containing the following calculation. 

Tile calculation formula: return width * length * 10000 / 3600.

The variables 'width' and 'length' correspond to the input fields on the page where users enter the dimensions. The constant 10,000 represents the conversion factor from square meters to square centimeters. Similarly, the constant 3,600 denotes the number of square centimeters in each tile.

The calculation for 'extra tiles' mirrors that of the 'number of tiles,' but with an additional step to incorporate a 10% safety margin. This means appending *(10/100) to the formula to ensure sufficient coverage beyond the basic requirement.

Calculation possibilities can be extended further by use of the ‘Math Formula’ Smart Field. To use this option requires a little knowledge of the MathJax syntax. There is a link to a reference guide within the formulas window when this option is selected.

Informational Fields

Image Metadata fields display values stored in a photo. For each field, choose the image and the metadata to display, including Flash, Lens Model, Focal Length (35mm equivalent), Original Date/Time, GPS Location, GPS Altitude, Copyright and File Name. Page Title can show the Current Page, the Previous Page or Next Page, or a page you choose. User Account fields include Username, Name, Surname, Email, Additional Information and Login Error Message.

Stone arch bridge spanning a rocky gorge, used to demonstrate image metadata smart fields.

Exposure time: 1/200

Aperture: f/7.1

ISO Speed: 100

Focal Length: 18mm

Camera Model: NIKON D3100

Other informational fields include the title of the page being viewed, as well as date and time data. For example, this is the date and time that you are viewing this page. This field continuously updates while the page is being viewed.

If you have a website with protected pages in which users have to log in, you can use Smart Fields to personalise a welcome message for your logged in users. For example, you could have a welcome message that reads:

Welcome Back, John, Our records show that your email address is john@me.com. If you have changed your email, be sure to let us know by sending a quick email to the administrator.

In the above message, the name ‘John’ would be a Name Smart Field and the email address would be an Email Smart Field.

Date and time by location

Insert a Date/Time smart field and click its token to edit it. In Location, choose a city or time zone to show the same local time to everyone, or select Visitor / Browser to use each visitor’s browser time zone.

Choose the date and time format for your page. Choose Continuous rather than Page Load Time if the field should keep ticking while the page is open.

Gallery slide numbers

Insert an Image Gallery smart field, choose the gallery, then select Current slide number or Total number of slides. Combine both in one text box, with a slash or the word “of” between them, to show a label such as 3 of 12. The current number follows the active slide.

See Image Galleries for ways to let visitors change slides.

Image titles and descriptions

Use IPTC Title or TIFF/IPTC Image Description to show metadata read from the source image. Click the token and choose which image to reference. The Image Description field is also available when you want to show the description you entered in Sitely.

See Images for importing and managing image metadata.

Using Smart Fields as button labels

When you add a button element to the page, you can choose to have the button label as a Smart Field. Double-clicking the button will highlight its default label and give you the option of entering a Smart Field in the Style Inspector. The button below has today’s date as its label.

Typewriter Text Effect

The Smart Field panel allows you to include a typewriter text effect field to your page. Its steps table lists each Text with its Delay and Effect, such as fade, blur, zoom, rotate or slide in. You can show a cursor that can Blink, start At Page Load or When Visible, Repeat Steps in a Loop or Remove After Last Step. The effect looks like this.

|


This Smart Field provides additional options for animating the text.

Counting options

The Countdown Smart Field allows you to set a countdown timer for when a particular event will happen in the future. For example, this is the Number of days until Christmas Day 2030: 

Below is the same information with a Flip-board effect applied showing the years, months, days, hours, minutes and seconds until Christmas day 2030: 



With countdown options, you can set various actions that should happen when the countdown stops. These are shown below.


Countdown completion menu with stop, continue, navigation, popup and replacement actions.

A Counter Smart Field is also included. It counts from a Start Value to an End Value, with Step, Duration, Initial Delay, Easing, Decimals and Thousands Separator settings.

0

Other options 

Page Variable shows an integer from the current page, such as a score. Site Search Query shows the words a visitor searched for. A URL parameter field exists for AI assistants working through MCP; you cannot insert it from the Insert menu. Code Snippet runs code where you insert the field. MusicXML displays a typeset music score: click Open MusicXML File to choose the file and set its Size. Blog Post Author and Blog Post Date/Time display details from a blog post.

Quick Video Tutorial

Play Video

Clicking sends your details to Google, which sets cookies and uses your data to personalize ads

Please report any shortcoming in this documentation and we’ll fix it as soon as possible!

Updated for Sitely 8

Powerful and refreshingly simple, at home on Mac, finding new freedom on iPad.

Product

Documentation

Pricing

What’s new

Download: iPad | Mac

© 2026 Crinon. All rights reserved.

Made with ♥ for iPad and Mac

Close and reject optional cookies

Cookie Bite  Cookie choices

We and our partners use optional cookies for extra features, saved preferences, visit counts and personalised ads. To change your choices later, use Cookie settings in the footer.

Reject all
Accept all

Closing keeps optional cookies off.  Privacy policy