Jump to content
Sign in to follow this  
Sam Laundon

Search and tokens

Recommended Posts

Another token question. I want to create a search with the search field hidden and use a token as the field to search. In this example I am using the record ID as the token. I have not been able to get the search to search that token record Id. What happens is the search results give me the first record id in the database not the specific record id that the token indicates (example: the token shows record id 027, but when I get to the search results the record id is 004 - the first record in the database. How do I create a search using the -token record id that will return a search on that specific record id.

Once again, thanks for your help

Share this post


Link to post
Share on other sites

Record ID and recid are inherent to FileMaker. Change the name of your field to something like dbid (you can always identify it on the layout with any name you want, but refer to it in your codes as dbid).

Then your link might include something like ...&dbid=[fmp-currenttoken.3]...

Share this post


Link to post
Share on other sites

Would this work for you:

<input type="hidden" name="-recid" value="[FMP-CurrentToken]">

Where the CurrentToken is the the 'Record ID' you are finding.

All the best.

Garry

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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