General developer forum

How to remove user's field when creating or editing users' profile

 
Picture of William Bergman
Re: How to remove user's field when creating or editing users' profile
 

Hello,


I would like to create a certificate that will display individual "code" per student.  I had planned to use the ICQ field and hide the field.  After hiding the field it is also hidden from the certificate.  Is there a way to remove the field from the "Edit Profile" page and leave it visible to the certificate plugin?  Moodle 3.3.1 using Custom Certificate Plugin 

Custom certificate
mod_customcert
3.3 release (Build: 2017050508)
2017050508
This is quite urgent, any assistance would be greatly appreciated.



 
Average of ratings: -
Picture of Michael Milette
Re: How to remove user's field when creating or editing users' profile
Core developersParticularly helpful MoodlersPlugin developers

You can remove the user's fields from just the profile edit page by specifying #page-user-edit which is a body tag ID. Example:

#page-user-edit #fitem_id_url,
#page-user-edit #fitem_id_icq,
#page-user-edit #fitem_id_skype,
#page-user-edit #fitem_id_aim,
#page-user-edit #fitem_id_yahoo,
#page-user-edit #fitem_id_msn,
#page-user-edit #fitem_id_idnumber {
    display:none;
}

 
Average of ratings: -