|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
question about disabling check boxes / input boxes
I have some check boxes and input boxes that I want to be disabled if certain viewers are on that page.
My problem is this...when the text box is disabled and i go click on the save button it automatically shows as no value for the text box even being there. Is there a way to get around this??? I want to have a user go in and check something and save it so that another user can see the process is in completion. But when the other user clicks save it doesnt give an error like it isnt there....???? |
|
#2
|
|||
|
|||
|
If you don't want certain users to be able to use some of the checkboxes or form elements, then don't output them to the screen for those users. There is way to disable a form element as an attribute of the form tags, but it is not cross-browser and it isn't really enforceable.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
yea
I understand that is the easiest method. What I am going to do is just put a bunch of cfif statements in the update.cfm page that will tell it to only update certain variables based on which user is sending it so that it wont clear the disabled fields....
I need the users to still be able to see that it has been done though. I think it is gonna work out fine this way. I appreciate it Kiteless. I thought there may have been another quick like input tag that might retain values but grey out the boxes. I appreciate it. |
|
#4
|
||||
|
||||
|
If you disable a input or check box and then submit the form, there values will not be passed on to the recieving form (even if they have a value). Probably the easiest way around this (if you need to have the information passed on) is on your processing page, have two seperate update procedures, one for those who have limited access and one for those you don't.
You could also just use cfparam to default them to certain values. |
|
#5
|
|||
|
|||
|
Exactly
That is exactly what i did by using the getauthuser() tag and its working fine.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > question about disabling check boxes / input boxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|