Jump to content

This topic is 8305 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

  • 1 month later...
Posted

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

Posted

"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.

Posted

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.......

Posted

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

Posted

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.

  • 3 weeks later...
Posted

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?

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.