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.

Passing of Token...

Featured Replies

If I set a Token to some field value, can that token be passed to the format page of the form which will then be used to set the value of a different field.

i.e.

In form A, the token is set to the value of [fmp-field B] and when the form is submitted and goes to the format page, I want to use the token that I set from the first page that contains form A to set the value of a form field found in the format page.

Thanks.

Hi, yes if you mean that you can use a token to pass a value to another database or field you can do that very easily, just put the token as the value of the field.

here's one I use as a url, where the token is the user's name:

<A HREF="FMPro?-db=theotherdatabase&-lay=layout1&-format=book2.htm&name=[FMP-CurrentToken]&thedate=[FMP-Field:thedate]&-TOKEN=[FMP-CurrentToken]&-New">click to book</A>

.......that also passes the same token along to the next part of the procedure.

or in a form, pass it as a hidden field:

<INPUT TYPE=hidden NAME=thefield VALUE=[FMP-CurrentToken]>

regards, jeff

  • Author

What is the proper syntax of using a token in an inline action?

Thanks....

for setting a token = to a field value

[FMP-InlineAction:-db=MY_DB.fp5, -lay=MY_LAY, -token.0={field:FIELD_name}, -view]

for passing a token is jusat about the same

...-token.0=[FMP-CurrentToken:0]...

*token.X if you use X number of tokens ---> if you use just one token "dot number" is not needed .:. -token= and [FMP-CurrentToken]

If I payed attention this forum....this is how you would do it.

  • 2 months later...
  • Author

I'm trying to use the value of a token as the value in an Inline Action. For some reason, I get no results in the InlineAction.

I printed the value of the token prior to the InlineAction and their is a value. Below is my code:

[FMP-CurrentToken: 2] <! -- shows fine here -->

[FMP-InlineAction: -db=Request_, -lay=TableDefault, reservation={FMP-CurrentToken: 2}, -Find]

[FMP-Record]

[FMP-field: reservation] [FMP-field: job_type]

[/FMP-Record]

[/FMP-InlineAction]

For some reason, I can't seem to figure out as to why I can't seem to use the value of the CurrentToken that contains the value to be used in the -find request in InlineAction?

I think my syntax is correct?

...reservation="{FMP-CurrentToken: 2}", ...

Perhaps, or not.

maybe just a paste error but:

-db=Request_,

should read: -db=Request_.fp5

all the best!

  • Author

The correct syntax is actually reservation={CurrentToken: 2} and not reservation={FMP-CurrentToken: 2}. The intratag syntax for Tokens doesn't use the FMP-.

-db=Request_ does actually work.

Thanks.

excelent! smile.gif

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.