Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7358 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have a project going that works in the following way. I enter a date on the web search page and in a search page text field I enter the date of interest. I want to store the user inputted date into a token so I can use it in the results page.

You might think why shouldn't I just use the found field in the results page? Well I am having people input multiple dates in the date field so searches can associate this single record with multiple dates. When the field shows on the results page it only shows the first date in the field. I want it to show the date of inquiry and thought passing the data though a token would be the way to go in my opinion.

I can get the token to pass information If I type in the date in the token directly but can not get the token to read the inputed data form the input field on the search page.

This may be impossible to do. But most of the time I find sombody somewhere has found a solution to the impossible.

Thanks for any help that anybody can give me.

  • 2 weeks later...
Posted

I too am looking for a similar solution.

1. Do a find on my custom web page for "book."

2. Finds record with field containing "Here is the title of the book."

3. Resulting -format page is a blank form where the user fills in information, submit is -new, creating a new record in a related DB file.

My question: I want what was used as the find, in this case "book," to be passed to the resulting -format page. I would like "book" contained in some sort of HIDDEN tag so that when the user fills out the form, the word "book" is sent with the form and is placed into the appropriate field in the new record.

Is this even possible with tokens or something of the sort?

Larry

Posted

You can use the [FMP-CurrentFind] tags. For example:

[FMP-CurrentFind]

[FMP-FindValueItem]

[/FMP-CurrentFind]

The only possible problem is when you have more than one Find Item. However, you can use [FMP-If] tags to select the appropriate Item.

You can also use a bit of Javascript to assign the entered value to a Token before the Form is submitted.

All the best.

Garry

  • 2 weeks later...
Posted

Howdy, folks!

Hmm... It may be possible to just take the input as a token on the search page and then use the token data to perform an inline action on the format page instead of doing the search right from the start. I've never worked w/tokens in inlines but it may worth a look, eh?

If it were me, I'd probably go w/Garry's latter suggestion of JavaScript if I weren't so JS impaired. Set the token before the form is processed.

--ST

Posted

Steve,

That is exactly what I did. With a little help from Gary I was able to perform a -find, then on the -format page the user is redirected to a specific URL. The redirect url comes from a CDML tag like:

[FMP-Field:URL Link]

Filed URL Link contains the fillowing information:

http://xxxx.xxxx/FMPro?-db=Respondents.f...ered=1&-new

I just modified that CDML tag to read:

[FMP-Field:URL Link]=&Login=[FMP-CurrentFind][FMP-FindValueItem][/FMP-CurrentFind]

So now the information from the first -find form is carried over and is added to the end of the URL in the resulting -format page.

LR

This topic is 7358 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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