Copy link to clipboard
Copied
Hi All,
I have a form on my site that I need fields to be locked/uneditable after a user enters information. For example... The user enters their name into the username field I need it to update as soon as they submit the form (or tab over to another field) rather than waiting for me to update it and upload it again. I am using CS4 and the form is working properly.
Thanks for your help!!!
Copy link to clipboard
Copied
> rather than waiting for me to update it and upload it again.
Sorry, I don't understand. What are you updating and uploading? What is this form submitting to? Please describe the workflow.
There are certainly ways to 'lock' the fields, but how you do it depends on the actual process workflow.
Copy link to clipboard
Copied
Thanks for the reply!
Sorry... Let me try this again
I have a form on my site, this form has 200 fields in it. The user needs to pick a number between 1 & 200, put their name in it and submit the form. The form gets emailed to me, I then enter this person's name into that field, mark it read only and upload the page again. What I am looking for is when that user enters their name into the # field and hits the submit button their name stays in that field and becomes locked so that another user can not choose that number. I would like this to happen without me having to manually fill in this field in dreamweaver and upload the page.
Does this make more sense?
Copy link to clipboard
Copied
Are you using any kind of database and server side scripting? The only way to 'lock' any kind of value is to store it somewhere in the server. Usually you would use a database for this. I'm not sure what kind of manual process you are performing, but this sounds like a job for a script and database and leave out the email part completely.
You could do something like this. Design a database with 2 fields: user_id and number_choosen.
The form would have the same two fields. The number_choosen would be selected from a drop down list that included all remaining numbers from the list of 200. Each time a user submits, the number they chose is removed from the list for other users.