HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to make a custom field non editable?

I've added a new field in 'Edit Profile' page by 'Profile Extender' plugin and I want to make it non editable. How can I do it?



Vanilla Version: 3.0
Tagged:

Comments

  • R_JR_J Admin

    Well, you can't do that with this plugin.

    Are you a developer? You can copy the plugin and extend it. This part of the plugins source code gives a hint that someone might have planned something similar:

       /**
        * Whitelist of allowed field properties.
        */
       public $FieldProperties = ['Name', 'Label', 'FormType', 'Required', 'Locked',
           'Options', 'Length', 'Sort', 'OnRegister', 'OnProfile', 'OnDiscussion', 'SalesForceID'];
    


    A profile field is allowed to have the property "Locked" but there is no program logic attached to that. In theory you can do that by extending the addedit view,the profilefields view and multiple methods of the plugin itself. That would be an interesting extension by the way.

Sign In or Register to comment.