Newbies JusTaBubba Posted June 19, 2001 Newbies Posted June 19, 2001 Essentially, I need to find out what field the user has selected. I am setting up a sign-up sheet on-line which would allow a user to enter their name into a time slot (field) - if that slot is available. However, if another person has already reserved that slot, the field needs to have a mechanism to block a new entry into that same field. What I would like to do is get the name of the field the user selected and run a script that would check to see if that field is empty or has already been reserved. If reserved, the user would be blocked from entering new information. To me, this all hinges on knowing which field the user selects and I thought that is what Status(CurrentFieldName) would do. When I've tried using this function, I get nothing. What am I missing? Is there a better way? Thanks for your help.
LiveOak Posted June 19, 2001 Posted June 19, 2001 The important question here is just HOW you are using Status(CurrentFieldName). The function will return the field name, but only after the user has clicked into the field. For example, if you attach a script to a field and set a global to Status(CurrentFieldName), you won't get the result you want as the script is run before the user is in the field. The script attached to the field must read: Go to Field (FieldA) Set Field(gFieldName, Status(CurrentFieldName)) -bd
LiveOak Posted June 19, 2001 Posted June 19, 2001 (also posted in response to private message) FieldA is whichever field you wish to check. I don't know what you are currently doing, so it is a little hard to know why it doesn't work. The alternative to one script per field is to have the user click into the field and then click another button to run the script. Another alternative is to use a FM plug-in which will trigger a script on fields exit, this should work but it may have the same problem based upon if the user is considered "in the field" when the script is triggered by the plug-in. My guess is that if you describe what you are trying to do at a higher level, an alternative way to perform the whole process will present itself. -bd
Recommended Posts
This topic is 8629 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