Skip 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.

TextStyleAdd: How to limit to certain characters in a field.

Featured Replies

I need some clarification on how TextStyleAdd works. I read this page already but it doesn't seem to function the way I'm understanding it described there. It says "TextStyleAdd(“Plaid”;Italic) returns the word Plaid in italics.", but it actually returns the word plaid and any other words following it in italics. So I guess I need to use additional functions to make it work on individual words but I'm not clear on how to do this.

Specifically, what I'm trying to do is create a price field that has the dollar and cent signs styled as superscript and no style on the numbers.

The original fragment of code I'm working with looks like this:

"$" & price ; price*100 & "¢"




First I tried this (only attempting to format the dollar sign):




TextStyleAdd ( "$" ; Superscript )  & price ; price*100 & "¢"

This makes the dollar sign and everything after it superscript. I experimented with TextStyleRemove on the following text but it didn't seem to have any effect. I tried only using it on the cent sign and that works fine - the issue only seems to happen to the text following the function. I did a search for TextStyleAdd on this forum and found several threads which seemed to have similar issues, but none of the examples worked for me.

Make sure the result of the calculation is set to Text.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.