kenneth2k1 Posted January 30, 2002 Posted January 30, 2002 Is there a way to lock a field after an entry has been made? Actually, what I really want to know is if the field can be locked and unlocked based on the contents of a separate field? Does that make sense? Thanks Ken
Garry Claridge Posted February 4, 2002 Posted February 4, 2002 You can look at using [FMP-If:] [[FMP-Else] statements. This could determine if the field is presented as an <input> tag or just text on the page. All the best. Garry ps Whoops, thought I was in the CDML section! [ February 03, 2002, 05:26 PM: Message edited by: Garry Claridge ]
r_paternoster Posted February 4, 2002 Posted February 4, 2002 Go to layout, and in the FILED FORMAT option of the filed, uncheck the ALLOW ENTRY INTO FIELD button. After that, make an script that runs the user through them. If the field number is small you dont even need a loop in the script. Did you get it?
Philland Posted February 5, 2002 Posted February 5, 2002 Interested in knowing if or how you've worked this out. The best I have come up with for the same type of situation is a second layout with locked fields and navigating with a go to "layout number from field" and setting that field as an If/Then based on the entry in another field
kenneth2k1 Posted February 5, 2002 Author Posted February 5, 2002 Thanks for all the replies. Philland: Actually, what I did was very similar to the solution you had. I attached a script to the button that goes to the layout in question. The script checks if there is an entry in a certain field. If there has been an entry, it sends them to an identical layout (only with locked fields). So youre solution for the problem is probably one of the best ways. Ken
kenneth2k1 Posted February 5, 2002 Author Posted February 5, 2002 Oh, one afterthought: This way may work for the current record but one problem that still comes up. If the active record qualifies to go to the locked layout and then you scroll up, that next record is still stuck on the locked layout, regardless. Ken
Garry Claridge Posted February 5, 2002 Posted February 5, 2002 "If the active record qualifies to go to the locked layout and then you scroll up, that next record is still stuck on the locked layout, regardless." And vice-versa! All the best. Garry
Thom Posted February 5, 2002 Posted February 5, 2002 If you use field validation, you can lock individual fields on a per record basis. Then you don't need to switch layouts or worry about locking all records when you only wanted to lock one (and vice versa). Using lookups or auto-enter, you can cause fields to lock automatically after data has been entered. You can unlock those fields by clearing the lock field(s) with a script.
kenneth2k1 Posted February 6, 2002 Author Posted February 6, 2002 Thom: Do you think you could give me a run down on how to use the field validation? I don't know anything about it, and I'm not a big fan of the FileMaker Help. Thanks alot Ken
Recommended Posts
This topic is 8326 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 accountSign in
Already have an account? Sign in here.
Sign In Now