February 21, 200223 yr 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
February 21, 200223 yr 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 ]
February 22, 200223 yr Author it helps me out thanks. How can i retreive the token value, and display it to the user? [FMP-token:9]?
February 22, 200223 yr 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
February 22, 200223 yr 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
February 22, 200223 yr 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 ]
Create an account or sign in to comment