daviator Posted June 12, 2003 Posted June 12, 2003 I know this has been explained before in this forum but I having trouble getting checkboxes to update on or off in an record detail page. I am using the code below with no luck. <INPUT TYPE=hidden NAME=cam VALUE=""> [FMP-VALUELIST: cam, LIST=need] <INPUT TYPE=checkbox NAME='cam' VALUE='[FMP-ValueListItem]' [FMP-ValueListChecked]>[FMP-VALUELISTITEM: Always, HTML] [/FMP-VALUELIST] The valuelist used has one entry: Yes The field in FM is a text field with no value required. I tried moving the hidden field up the html but no luck. As a test, I redirected my form to a friend's (non filemaker) server and he saw the data coming through as it should. Checked as "Yes" and Unchecked at blank but it doesn't work in my FM database and and when I return to that record later. All I want is to be able to check and uncheck a box in the record detail page and have it stick! Radio buttons add to much clutter and the way Filemaker does it, well is stupid. You can check both a "Yes" and "No" checkbox for the same field. Any help would be greatly appreciated! Thanks! Dave E.
daviator Posted June 13, 2003 Author Posted June 13, 2003 Hi Unable, Thanks for all of the work you did on this. After some fiddling to get the hyperlinks correct, I am now getting the following error when I hit the submit button. Bad Request The server could not process your request due to a syntax error. Thanks, Dave
Unable Posted June 13, 2003 Posted June 13, 2003 " After some fiddling to get the hyperlinks correct..." What hyperlinks, what fiddling?
daviator Posted June 13, 2003 Author Posted June 13, 2003 You had the path to the page.htm doc as: checkbox/fmpro?-db=check.fp5&-format=page.htm&-findall When it didn't need the checkbox/ as the file was already in that directory. Thanks, Dave
Unable Posted June 13, 2003 Posted June 13, 2003 For my own enlightenment, and since the checkbox/ in the initial reference seems necessary to work on my Mac, could you inform me of (1) your machine and (2) your version of FMP? If you are now suffering a "syntax error" it could be that checkbox/ needs to be placed on the other format files. I don't know. I'm trying to piece this together. I recently downloaded someone else's example and found that I had to add such a reference to their format files. Thanks.
daviator Posted June 13, 2003 Author Posted June 13, 2003 I am running Windows98 and FM 5.5 Thanks! Dave
Unable Posted June 13, 2003 Posted June 13, 2003 My experience with Windows is all negative. Sorry I can't provide an answer to why you are getting a syntax error. If you don't get it working, perhaps someone with better Windows experiences can assist.
Unable Posted June 14, 2003 Posted June 14, 2003 "You had the path to the page.htm doc as: checkbox/fmpro?-db=check.fp5&-format=page.htm&-findall "When it didn't need the checkbox/ as the file was already in that directory." Upon thinking about this a little more, I guess part of my failure to understand is I am not truly conversant in computer lingo. Thus when you say "in that directory" I have no idea as to what that might mean. With my Mac I just put the folder "checkbox" in the folder "Web" which is in the folder FMPro. I pull the default.htm out of checkbox and keep it loose in Web (the db file could be put elsewhere, but for development, why bother). That is all I have in Web. I then open the db, open a browser to localhost and do my developments. I never deal with a "directory" as such. But that may be Mac. My understanding of the path from the default.htm as I've used it, which includes the name of the folder holding the format files (except default.htm), is that WC recognizes the FileMaker App and subsequently the folder Web therein, but if the format files are in a folder of their own within the Web folder, then that folder must be designated from the default.htm, which is kept outside of it, but in Web. But my understanding could well be in error. This is just what has worked for me for years. Maybe I'm doing it all wrong. Or maybe there is another approach of which I am not aware.
Leb i Sol Posted June 16, 2003 Posted June 16, 2003 "checkbox/fmpro?-..." in Win platforoms (and Mac) there should not be anthing preceding the FMPro ... this is as "deep" as you need to go into the "root". Any folder placed in the web folder will be discovered by the server. so you can have your pages in some (sub)folder: fmpro?-db=check.fp5&-format=/SOME_FOLDER/page.htm&-findall ALl the best!
Unable Posted June 16, 2003 Posted June 16, 2003 Well live and learn. Now I have two methods which will work on my Mac. Thanks Leb i Sol. I have revised the demonstration and posted it in the same Sample File thread as referenced above. I hope this works for everyone.
Recommended Posts
This topic is 7900 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