April 10, 200223 yr How can I go about using a check or radio box, that will make a record visible or invisible on the web? Say there are 10 records, and the person would like to have 1-5 visible and the rest invisible on the web. They would just check a box for each of the first 5 records and they would then show up on the results page. Kinda like an on/off switch for each record via the web/CDML page.
May 17, 200223 yr Author I tried searching for "show" like Anatoli said, but came up empty. What am I really trying to do here? Portals, Javascript?
May 17, 200223 yr I have a field, in one of my databases, which has the value "yes" if I want that record to show on the web. I then use an [FMP-If] tag in my format file to test that field before displaying any data. Hope this helps. Garry
May 17, 200223 yr "Say there are 10 records, and the person would like to have 1-5 visible and the rest invisible on the web." If there are ten records and you want to show the first five followed by the next five, then fmp-linknext in conjuntion with an original -find with a -max=5. To allow the selection of one record at time from a found set, consider fmp-linkrecid. Otherwise you will need to structure a new find using the check-boxes. But you will also need to figure out how to clear the check-box-field following the -find so that they will not appear in a future search of that field. I recommend a ScriptMaker script.
May 17, 200223 yr Author I guess I wasn't too clear with my description. Basically I need the ability for the page admin. to be able to toggle any record on or off, and back again if need be. So this should have read "Say there are 10 records, and the person would like to have 1, 3, 5 & 9 visible and the rest invisible on the web." Then on another day, maybe 2,4 & 6 are visible Thanks for all the help, I'm still unsure as to how to go about this.......
May 18, 200223 yr I guess the real question is how to perform a multiple 'edit'. This is so the flag field of each record, whose checkbox has been checked, can be edited with one submit. Good question! All the best. Garry
May 18, 200223 yr I think we are not so far. Sure it is interesting question and I guess it cannot be done without JS. I can imagine to have submit button with each record. With clever JS scripting it might be possible to have "submit all" button and JS sending all rows.
June 4, 200223 yr I am just a newbie but wouldn't it be possible if you put all the data (hidden or not hidden) in the search results and start on every row a form that will end after the button change on the bottom of the page. Maybe with javascript multiplying the end tags of the form by the amount of records that are visable. Can Filemaker handle this?
June 4, 200223 yr hi there i'm using this in a file of mine for admin: Online[fmp-valuelist:online] <input type="radio" name="online" value="[fmp-valuelistitem]" [fmp-valuelistchecked]>[fmp-valuelistitem][/fmp-valuelist] maybe this will help best mimmo
Create an account or sign in to comment