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.

showing "uppercase" on cdml page

Featured Replies

Hi everyone,

i have a database and all the fields are set to uppercase. in my html file i have this for every field:

[FMP-Field: name, raw]

i am tring to get the text from the records to be in titlecase like the database.

thanks peter

Try using Format instead of Raw. This was introduced in either FMP 5 or 5.5.

Failing that, you can try this:

<script>

var FMPField = [FMP-Field: FieldName]

FMPField = FMPField.toUpperCase()

document.write(FMPField)

</script>

  • 2 weeks later...
  • Author

ok i tried the Format and it didn't work.

the script didn't as well. it shows in the source file that it is there but it's not writing on the screen.

not sure what is happening

Peter

Try this:

<script>

var FMPField = "[FMP-Field: FieldName]";

FMPField = FMPField.toUpperCase();

document.write(FMPField);

</script>

Garry

Nice catch, Garry... I keep forgetting about quotation marks around literals.

Gets me occasionally too! frown.gif

Garry

  • Author

Works great. Thanks everyone.

Peter

Create an account or sign in to comment

Important Information

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

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.