Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I would like to have my license agreement open the first time someone opens my DB and once they agree to it the DB opens without the license agreement from that point on.

Posted

Try this:

Make a layout that will be your license agreement. On it, you should have a button that says "I Agree." Make a field called lic_agree.

Make a script that goes like this:

Set Field [lic_agree, "Agree"]

Go to Layout [main layout]

attach this to the "I Agree" button.

Do a similar script for the Decline button

Then make a script that will run at start up. It goes:

If [lic_agree = "Agree"]

Go to layout [main layout]

Else

Go to layout [license agreement layout]

Then go to Edit/Preferences/Document, check Perform script and select this script

You should be able to figure out the rest.

Let me know how it works

Ken

Posted

Ken,

I'm still a little fuzzy about this...

Once the user agrees to the license I don't want it opening again in the startup...

One time deal...

Is it possible?

Posted

Michael,

From what ken has written this is a once only deal.

The field lic_agree starts empty (or with disagree)

With the script set to perform on startup, it checks the lic_agree. If this doesn't contain agree the user is taken to the license where they agree or disagree.

If they agree then lic_agree now has agree in it.

The next time they open the file, the script runs to check if they did agree. As they did they are taken to a different layout.

They will never see the license again.

Is this any clearer?

quote:


Originally posted by Michael Huddleston:

Ken,

I'm still a little fuzzy about this...

Once the user agrees to the license I don't want it opening again in the startup...

One time deal...

Is it possible?

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