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

Conditionally change field behavior or make invisible


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

Recommended Posts

Posted

I suppose you could create a field level access priv restriction. Or, you could have an Edit button next to the field (the field's behavior has Browse mode unchecked). The Edit button could check priv set (admin only, for example) or show some sort of dialog, then popup an edit layout.

What's the real-life scenario?

  • Newbies
Posted

If it's one field I would agree that the button is the way to go. I have the button point to a script that runs as admin and the users have no edit access to that field. Script reads as follows:

If [isEmpty ( Table::Field)]

Show Custom Dialog ["Title"; "Please enter text for field:"; Table::Field

Commit records/Requests [No dialog]

End If

My problem is that I now have 30 some fields on a single layout that need to be able to be changed if it is empty, but not changed if someone has already put in data. All fields are text fields. I'm really disappointed they don't have an "edit once" option for a field.

As far as I can tell the field lvl access privileges are Modify, view only, or no access, there is no custom restrictions. I implemented something similar where there was a lock button/script that would only change the value of a lock field. Edit privileges checked against that field, but it effects the entire layout, not individual fields. In this case I have about 100 fields and only half need to be protected.

There must be a better way to do this. Anyone have better ideas?

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