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

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

Recommended Posts

Posted

Is there a function or script available to turn a field off once the count gets to zero?

I have a table that has four fields, I have the counting and subtraction working, except that the end user is able to assign keys even after all of the keys have been checked out. What I would like to find out is if there is a script or function that would turn the field off and alert the user to order more keys.

Thanks for any help.

Hal

Posted (edited)

Welcome to the forum.

Is this on a layout or a portal within the layout.

Let's say it's a portal. Set the fields to a button and create a script that checks the count and if count = 0 exit script.

If(Countfield = 0)

Show Custom Dialog(Notice; "No more keys available")

Exit Script

endif

Go To Field(Field1)

This is a quick and dirty script. If you need more help let us know.

hth

*******************************************

I had some time so I put this example together for you. I hope it takes you in the right direction.

GTRR_Test.zip

Edited by Guest

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