Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

inserting field data into html code

Featured Replies

How do I add field data to html code?

I have a database of products that exports an excel file used to upload information into an e-commerce site. I would like to include a field, in each record, that combines html code and the data from a couple of the other fields.

I am trying to combine some static code with data that changes with every record. i.e., html text "Colors:" with the data from a field containing the available colors.

How do I do this?

Hi Rainy Pass,

The most common way to build a dynamic block of data (text or html etc) is to put the boilerplate/template for your text (html) into a global field and insert unique place-holder values into the html wherever you want a field value to be inserted. For example:

[color:gray]Your html has a [[datafield]] in it here and a [[namefield]] there...

Then, to have the contents of the relevant field appear instead of the placeholder, in each record, define a calculation field with a formula along the lines of:

Substitute( YourGlobalField; ["[[datafield]]"; YourTable::DataField]; ["[[namefield]]"; YourTable::NameField])

With this calculation in place (and ready to be exported) the tagged placeholders in your global field text will be replaced with actual field text on each record. }:(

  • Author

Many thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.