I have added a custom field called tax. It has a default value. What I want is the it should not be edited either by the admin or the user in the Edit User Form. ( Because it is one for all ) It has a default value which can be edited in the add fields page only But it should be visible in the Edit User Form but cannot be edited.
There are some fields in the Edit User form which needs to be filled only by admin. So by any chance or by mistake the admin should not edit that particular field because that field is used for tax calculation only any changed to this field will affect the required result. It field should only be seen but not edited by the admin in the user edit form, as it has a default value asigned to it. If admin needs to change, it can only be done through the add field page. I hope you understood the problem.
You can disable it from editing by using javascript. Or else you could hide it with CSS by using rules like: Code: FORM INPUT[name="name_f"] { visibility: hidden; }
This seems not working. What is needed is When we add the field there are options under visibility of the field, but that is only for the user profile, not for the admin. Can we have one more option Display in Edit User form? ( in admin area >> add field ) Don't Display Display and allow editing Display only, editing is not allowed
Of course it's not working if you just copy-pasted the code You've to adjust it to your situation (read field name) and add it to the site.css file/
Sorry but this is still not clear. If this field can't be edited by admin and by user, I guess it will have the same value for all users correct? Then how you will use it? Will it just be displayed for user and admin? if yes I believe just templates modification will be enough in this situation.
From Quote : If this field can't be edited by admin and by user, > > This field can be edited by the admin in the Additional Field page and not in the User Edit page when the admin browses for the user details From Quote : I guess it will have the same value for all users correct? Then how you will use it? > > Yes it has the same value for all the users. This will be used for tax calculations only. From Quote : Will it just be displayed for user and admin? > > Yes it will only be displayed for the user and also for the admin in the Edit User page ( But can be edited by the admin in the Additional Fields page,the default value ) From Quote : if yes I believe just templates modification will be enough in this situation. > > what template modification has to be done? As I tried to find out, where to find the additional fields, have no clue as to where to find them in the code, and in which template And if css is used then I think logically that, it will also affect in the Additional Field page, in the admin area. Where the default values are supposed to be edited but also should only be seen in the Edit User page, correct me if I am wrong. The situation with pictures In the Edit User page when the admin browse for the member he sees this page What I want is this ( The Tax area has been manupilated in photoshop to show the effect which is to be needed ) And this is what the user sees I hope this pictures have made the situiation more clear. Regards Subhash