drdigital9 Posted April 10, 2002 Posted April 10, 2002 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.
Anatoli Posted April 10, 2002 Posted April 10, 2002 Just search again with the parameter e.g. "show".
drdigital9 Posted May 17, 2002 Author Posted May 17, 2002 I tried searching for "show" like Anatoli said, but came up empty. What am I really trying to do here? Portals, Javascript?
Garry Claridge Posted May 17, 2002 Posted May 17, 2002 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
Keith M. Davie Posted May 17, 2002 Posted May 17, 2002 "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.
drdigital9 Posted May 17, 2002 Author Posted May 17, 2002 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.......
Anatoli Posted May 17, 2002 Posted May 17, 2002 Create search based on Flag Field or use IF Endif in CDML code
Garry Claridge Posted May 18, 2002 Posted May 18, 2002 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
Anatoli Posted May 18, 2002 Posted May 18, 2002 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.
Sharky Posted June 4, 2002 Posted June 4, 2002 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?
Anatoli Posted June 4, 2002 Posted June 4, 2002 IMHO -- HTML cannot handle this. HTML plus JavaScript and FileMaker probably yes.
cannes Posted June 4, 2002 Posted June 4, 2002 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
Sharky Posted June 5, 2002 Posted June 5, 2002 I will check it when I have time... what do i get when it works :-) ;-)
Recommended Posts
This topic is 8305 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