Hi All,
I have apply readonly field by studio functionality, but it is applied only for non admin user
in need to apply the same for admin.
could any one please suggest me how i can do readonly fields for admin.
Thanks in Advance
Hi All,
I have apply readonly field by studio functionality, but it is applied only for non admin user
in need to apply the same for admin.
could any one please suggest me how i can do readonly fields for admin.
Thanks in Advance
Hi,
I am not sure to get your problem.
When you define a field as readonly from the Studio > Fields section, the field is readonly for everybody, including the admin (except if you applied a formula related to the connected user with a specific criteria that doesn't apply to your admin account).
Can you copy your field definition ?
Fred
Thank you for your reply
i have apply readonly on reletionship filed, however it is working for regulare user, but it is not wokring on admin user
Hi,
Roles are only applied to standard user, not for the admin users (and it is the same with team visibility).
If you want to apply a read only settings to anybody, rather go through the studio > Field
Hope it helps.
Fred
Thank you for your prompt reply,
i want to apply readonly for relatioship field,
could you please guide for that
Readonly for realtionship can only be defined (as far as I understand) from code.
Could you do that ?
yes, i have applied below code, but it is not working properly
_renderHtml: function(){
var self = this;
self.noEditFields.push('field_name_for readonly');
this._super('_renderHtml');
},
_dispose: function(){
this._super('_dispose');
},
I think you could do that in the vardef of your relationship
custom/Extension/modules/<yourmodule>/Ext/Vardefs/sugarfield_field_name.php
custom/Extension/modules/<yourmodule>/Ext/Vardefs/sugarfield_field_id.php
and add the property readonly = true
for instance
$dictionary['Account']['fields']['parent_name']['readonly']=true;
Thank You Fred, it is wokring fine now
Thank You Fred, it is wokring fine now