Jump to content

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

Recommended Posts

  • Newbies
Posted

Hi I'm new to FMPro7 and have designed a fill in form for my webpage. I have come across two problems.

The first problem is that information imputted previously is shown when a new guest logs in. I want the the fill in form to be new and blank.

The second problem is that I want to hide the status area and make sure it can't be opened by Guest Users.

I have created a script to do this but I am unsure if it is working. the database is at

http://db.ican.org.au:591 and is called E-News List.

If anyone can help me it would be greatly appreciated.

Cheers Aaron

Posted

The best way to have a blank form, without creating a new blank record on startup is to use global fields for the form, and then have a submit button which calls a script creating the new record with the values in the globals. Since globals are session specific, they won't carry over into the next user's session (you can however, set default values for the globals in single user mode.)

You can hide the status area in a startup script, and you can choose the "lock" option to disallow manual opening of the status area.

  • Newbies
Posted

please excuse my ignorance, but how do I set a Start Up script. I ticked lock on the hide script but it still has the arrow that can open it when I access the form from a remote location.

Cheers Aaron

Posted (edited)

Every file (in the file options) has the option of running a script when the file is first opened. You can place a step in this script that runs the hide status area (lock) script step.

You can do it specifically for web users like this:


If[PatternCount(Get(ApplicationVersion);"Web")]

   Hide Status Area (Lock)

End If

Edited by Guest

This topic is 7120 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.