Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Disable Matter Field on Edit Profile Dialog
roachm
I am trying to disable a number of fields that are displayed on the edit profile dialog including the matter field. It works for all the other fields but the Matter field remains editable. I have tried changing around the order in which fields are disabled but it does not seem to matter. Any help would be appreciated. Thanks.
'Declare const for fields
Const nrClient = 25 'Custom1
Const nrMatter = 26 'Custom2
Const nrAreaOfLaw = 27 'Custom3
Const nrLocation = 28 'Custom4
'Const nrBillingAtty = 30 'Custom6
Const nrDepartment = 53 'Custom29
Sub EditProfileDlg_OnInitDialog(dlg)
Call dlg.SetAttributeValueByID(nrMatter, dlg.getAttributeByID(nrMatter), False)
Call dlg.SetAttributeValueByID(nrClient, dlg.getAttributeByID(nrClient), False)
Call dlg.SetAttributeValueByID(nrAreaOfLaw, dlg.getAttributeByID(nrAreaOfLaw), False)
Call dlg.SetAttributeValueByID(nrLocation, dlg.getAttributeByID(nrLocation), False)
'Call dlg.SetAttributeValueByID(nrBillingAtty, dlg.getAttributeByID(nrBillingAtty), False)
Call dlg.SetAttributeValueByID(nrDepartment, dlg.getAttributeByID(nrDepartment), False)
End Sub
Find more posts tagged with
Comments
jny
This is a known issue. A bug has been reported on the ineffect of disabling child lookup field via scripting.
This is the only work-around that might suffice until the fix is released:
[editprof.nrs]
========================================================
CONST nrCust2 = 26
'// This disables the field by setting the Custom2 field value that is returned by the IManDocument object.
'// Please note the Custom2 field only gets disabled when an end-user attempts to change the field.
Sub EditProfileDlg_OnChange(dlg, id)
if id=nrCust2 then
dim doc
set doc = dlg.NRTDocument
dlg.SetAttributeValueByID nrCust2, doc.GetAttributeByID(nrCust2), False
end if
End Sub