Locked form field?
I'm not able to find this anywhere as a feature, but what I'd like to do is make a specific field on my form editable only by certain users. I'm not trying to lock the layer in the template for editing/moving. I'm trying to forbid data entry if this is a general user on the form.
In other words, I always want to print the data source on my label (which will contain a default value, in this case today's date). But admins should have the ability to back-date a label and select a previous date.
-
I dont think there is a way you can do this directly but you could rig something up to help to achieve this.
To make it simpler to implement (ie without the need for any VB etc) I would suggest allowing the admin to enter the number of days value rather than pick a date. This is how I set this up:
I added onto the label (these should be dragged off the side of the printable area) two additional Named fields, one called OffsetValue and the other LoginID. The date field itself is set to offset by X number of minus days based on the value of the OffsetValue field.
On a Data Entry form add in an input for the users to enter a LoginID value. This should be an ID that only the admins know and should always be the same.
Then add a second Data Entry form that only shows when the LoginID is the correct value (I set mine to 9999) and add onto this a Input box, with a default value of zero that is linked to the OffsetValue field.
At print time you would see this:
If you do not enter the correct login then the label prints, but if you do you then see this
You could possibly make the login check more sophisticated and use a VB routine to check a series of IDs but you would then have to maintain this if there are any changes to be made
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar