Jump to content

Lock field if another not IsEmpty


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

Recommended Posts

Help. Sorry, I've seen posts about this but for some reason, they don't seem to help me.

Simplified:

Fields:

APPROVED

CONTRACT_PRICE

CONTRACT_PRICE is typically editable.

But, if APPROVED is checked, or not IsEmpty or whatever,

CONTRACT_PRICE becomes not editable.

*I am not using buttons to initiate any scripts. *I'm assuming I can do this as a calculation w/in one of the the two fields.

*I don't know where and I don't know what functions/language to say "Don't make this field editable anymore".

Thanks a bunch.

Link to comment
Share on other sites

There are a few ways to do this... One would be with field level access privileges under accounts and privileges.

Another would be to make your CONTRACT_PRICE field a button itself. It would then call a script like.

If [ not IsEmpty ( APPROVED ) ]

Show Custom Dialog [ "Locked"; This field is no longer editable" ]

Else

Go to Field [ "CONTRACT_PRICE " ]

End If

A possible third option would be to use some kind tab control to hide the field.

Yet another option would be to use a relationship to hide the field.

Link to comment
Share on other sites

Thanks a million. That whole making fields a button thing really threw me off and is totally new to me. I didn't realize you could do that. That is going to really help with other files I'm making.

And it works by the way.

Link to comment
Share on other sites

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