pspafford Posted April 5, 2004 Posted April 5, 2004 Hey everyone, I'm using CDML tokens for the first time. An initial page has the employee entering the date, and selecting an href link of their name. That link has an onClick event that uses JavaScript to go to the following link: http://127.0.0.1:591/FMPro?-DB=gTime.fp5&-Format=timeEnter.html&-Token.2=5&Token.1=04/14/2004&-View The format file is where they enter the details of their timesheet. There are fields in the format file like this: <input type="text" name="date" value=[FMP-CurrentToken: 1] /> <input type="text" name="staffId" value=[FMP-CurrentToken: 2] /> Token.2 goes to staffId all okay, but Token.1 only sends a single slash character("/") to date. I had thought the slashes in the date might be the problem, but even when I changed the date to a single number ("4"), I had the same problem. Can you offer any advice? Thanks, Paul FileMaker Version: Dev 6 Platform: Windows 95/98
Garry Claridge Posted April 5, 2004 Posted April 5, 2004 Have you tried adding quotes: <input type="text" name="date" value="[FMP-CurrentToken: 1]" /> <input type="text" name="staffId" value="[FMP-CurrentToken: 2]" /> Good Luck Garry
pspafford Posted April 5, 2004 Author Posted April 5, 2004 Hey Garry, I just tried it -- no joy: I don't even get the slash. Thanks, Paul
pspafford Posted April 5, 2004 Author Posted April 5, 2004 Got it! Someone on FMWebtalk noticed that there was no hyphen in front of "Token.1" in my generated URL. That's one of those silly little typos that just deserves a good slap. Thanks, Paul
Recommended Posts
This topic is 7607 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