January 30, 200223 yr 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
February 4, 200223 yr 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 ]
February 4, 200223 yr 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?
February 5, 200223 yr 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
February 5, 200223 yr Author 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
February 5, 200223 yr Author 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
February 5, 200223 yr "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
February 5, 200223 yr 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.
February 6, 200223 yr Author 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
Create an account or sign in to comment