glaser_david Posted February 21, 2002 Posted February 21, 2002 Can anyone tell me how to set a token to the value of a field in the current found set? is it <input type=hidden name="-token.mytokenname" value=[FMP-field:myfieldname]> where do i actually set the token name and its value? in the input tag, or do i need to do something before? thanks
Garry Claridge Posted February 21, 2002 Posted February 21, 2002 It is: <input type=hidden name="-token.n" value="[FMP-field:myfieldname]"> The 'n' is a number from 0 to 9. The [FMP-Field:....] should be in quotes. Hope this helps. Garry [ February 21, 2002, 03:52 PM: Message edited by: Garry Claridge ]
glaser_david Posted February 22, 2002 Author Posted February 22, 2002 it helps me out thanks. How can i retreive the token value, and display it to the user? [FMP-token:9]?
Garry Claridge Posted February 22, 2002 Posted February 22, 2002 Here it is: [FMP-Currenttoken:9] Download the CDML tools bundle from the FM site. The "CDML Reference" database is excellent value. All the best. Garry
lzeng Posted February 22, 2002 Posted February 22, 2002 In my page, I have: ... <INPUT TYPE="hidden" NAME="-token.1" VALUE="[FMP-field: Doctor_Name]"> <INPUT TYPE="text" name="Doctor_Name" size="40"> .. <INPUT TYPE="submit" name="-View" value="View Records"> Then in my format page, I have: Doctor name is [FMP-CurrentToken:1] I got "Doctor name is [FMP-field: Doctor_Name]" in the web page, but not the exact name like "Mike", which I typed in the first page. Do you know what's wrong with it? I want to use the [FMP-CurrentToken:1] value to do comparison in later pages. Thanks very much! Catty
Garry Claridge Posted February 22, 2002 Posted February 22, 2002 You will need to input to the Token; e.g.: <INPUT TYPE="text" NAME="-token.1" VALUE=""> Also you do not need this because you have '-view': <INPUT TYPE="text" name="Doctor_Name" size="40"> .. <INPUT TYPE="submit" name="-View" value="View Records"> This should now show what was typed in: Doctor name is [FMP-CurrentToken:1] All the best. Garry [ February 22, 2002, 11:54 AM: Message edited by: Garry Claridge ]
Recommended Posts
This topic is 8379 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 accountSign in
Already have an account? Sign in here.
Sign In Now