In filemaker the Tab can be inserted using Char(9) such as
Field1 & char(9) & Field2
Thanks so much for the response. I tried typing char(9) into the Specify Calculation screen and when I click OK it says "This function cannot be found" and, of course, it isn't listed in the function window. Obviously there's something here I'm not getting. After days of pulling my hair out you've got me thinking a solution is seconds away.
Char () is a new function for FMP10. In the older version you can enter in a tab by using Ctrl-Tab. I usually set a global variable on startup.
Set Variable [ $$tab; " " ]
Where you put a tab character in between the double quotes using Ctrl-Tab.
Then you can reference that character anytime using $$tab.
Dang, I'm only on FMP9. I tried doing what you suggested but hit a glitch. I'm on a Mac (10.5.8) but I've got a Microsoft keyboard. When I do Ctrl-Tab instead of inserting something between the Quote marks, it leaves the window. Same with just the tab key. Any ideas?
Just a thought, can you add a tab into a text document, then copy and paste it into the FM calc, or have you not got any tab functionality anywhere... Im not a great mac user..
Also, I didnt even think to ask what version you where using, sorry for the confusion there.
Well I should have included version # in my original post. I just tried copying a tab from the mac text editor into the variable. What I get when I finally do the paste is one long field with tabs in the middle rather than the tabs acting as the command to move to the next field as you do when you type the tab key from the actual field on the web form. I'm still praying for a solution.
There is a huge difference between the tab character verses the tab Action.
Furthermore, after re-reading your post, it seems as though you want to tab through a web page. This is again very different from the Go to Object functionality in FileMaker.
Last you still havent said what version of FileMaker you are using.
If you have access to the webviewer, it may make more sense to pass the paramaters as part of the URL string.
My apologies for not posting the version number in the very first query. It's FMP9. I hadn't realized you could pass material to populate fields on a form as part of the URL. So I've been trying to find something which explains how to do so. Haven't yet found anything generic about it though.
Ok, now I think we are on the same page, I didnt realise you where trying to tab through a webform either.
It depends on the website if you are able to pass parameters to the url, the website must be able to use them.
For instance... Google
The red fields are the parameter names and values.
So you could, in filemaker have something like a button with open URL.
Whatever you typed in the field SearchQuery would be passed to google and actioned.
That of course is one example, you can open the webviewer in a similar way.
My sense is that it's not the kind of page that allows such input. At least when I tried it, it didn't work. The page I'm trying to populate is http://zip4.usps.com/zip4/welcome.jsp You'll notice that it's a Java Server Page file. I've read what I can about JSP but lack the background to make much of it. The post office does have a XML system for sending them a request and getting a response and there seems to be something in FMP that supports XML. I just feel totally in over my head on this.
Ive not played around with it much, but it does accept them.
Looks like they have address 1 and two backwards though.
So try something like this
That fills in the form for me, with a little playing about you could probably change welcome.jsp to their results page
My goodness. I feel like I'm on the one yard line. Thank you from the bottom of my heart. You're right. It does accept them. I guess I just wasn't doing it right. I wish I understood what the "firmname" is doing in there. And my street addresses are going into the wrong fields (it's not confusion I don't think, I think I know where my fields are and they're not ending up in the right address. I should just try switching things and see what happens). And the zip code field isn't accepting anything. How did you get the names of the fields? I mean, I know they're labeled on the screen, but that isn't necessarily what the fields are truly labeled, is it? At least I'm getting nowhere with the zip. But I'll keep trying. You've done me a huge kindness. My thanks to you and mr_vodka for taking the time to help a beginner.
A little more feedback after playing around some more. The street address fields are definitely labeled the opposite of what it says on the screen. (Which almost makes sense because the post office prefers the Apt. # to go on the first street address line and the actual address to go on the 2nd street address line.) And I've been able to populate both of them, but not at the same time. Whichever comes second (I tried switching their position in the sequence of commands) succeeds and the one that comes first doesn't. I wonder if something about the proximity to "firmname=" throws things off. Still no luck populating the zip code field. I just wish I could read the field's label somehow. Do you know a secret to how you do that?
Again, you have no idea how much your help has been appreciated. Or maybe you do know.
For what it's worth, here's the code:
code removed, read on:
So here's something odd. When I tried to post this I got the message:
Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.
So now I need to figure out how the HTML was changed. Maybe that's the clue to my problems.......... Except I just spent five minutes comparing the before and after and I can't see a lick of difference. So I hit post again thinking the message meant that the HTML had been corrected already and got the same message.
I need to hit the sack. I'll study it again in the morning.