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.

token not setting

Featured Replies

Hey everyone,

I'm using CDML tokens for the first time.

An initial page has the employee entering the date, and selecting an href link of their name. That link has an onClick event that uses JavaScript to go to the following link:

http://127.0.0.1:591/FMPro?-DB=gTime.fp5&-Format=timeEnter.html&-Token.2=5&Token.1=04/14/2004&-View

The format file is where they enter the details of their timesheet. There are fields in the format file like this:

<input type="text" name="date" value=[FMP-CurrentToken: 1] />

<input type="text" name="staffId" value=[FMP-CurrentToken: 2] />

Token.2 goes to staffId all okay, but Token.1 only sends a single slash character("/") to date. I had thought the slashes in the date might be the problem, but even when I changed the date to a single number ("4"), I had the same problem.

Can you offer any advice?

Thanks,

Paul

FileMaker Version: Dev 6

Platform: Windows 95/98

Have you tried adding quotes:

<input type="text" name="date" value="[FMP-CurrentToken: 1]" />

<input type="text" name="staffId" value="[FMP-CurrentToken: 2]" />

Good Luck

Garry

  • Author

Hey Garry,

I just tried it -- no joy: I don't even get the slash.

Thanks,

Paul

  • Author

Got it! Someone on FMWebtalk noticed that there was no hyphen in front of "Token.1" in my generated URL. That's one of those silly little typos that just deserves a good slap.

Thanks,

Paul

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.