TS version: 7.2.1OS: Windows 2008Purpose:I am trying to control the visibility of a radio field in the workflow custom instantiation screen by getting the array of roles of the user. I loop through all the roles the user has on that branch and then if it matches a specific custom-role(that i have created), then it must show that radio field, else it must hide the radio field. I am using the getroles() function of the form API for this in the custom instantiation config file.I am calling getroles() function in the init function itself of the custom instantiation screen.Issue: when i put a couple of alert statements before using the getroles() function, the roles are retrieved from the server correctly. this i check by looping through the roles-array and then checking by putting alerts.But when i remove the alert statements from before the getroles() function, the javascript stops working. none of the alerts either before or after the getroles() function show up.Question:Is there a known issue for use of getroles() in custom instantiation config?or am i missing something?Code snippet:IWEventRegistry.addFormHandler("onFormInit", init);function init() { alert("in init"); handleTargetNodesChange(IWDatacapture.getItem("/Config/TargetNodes")); } function handleTargetNodesChange(item) { var userRoles=IWDatacapture.getRoles(); var customItemFlag=IWDatacapture.getItem("/Config/CustomRoleItemFlag"); alert("customItemFlag is "+customItemFlag); for (var i = 0; i < userRoles.length; i++) { alert("UserRole at Index "+i+" is " + userRoles); if (userRoles == "customRole") { customItemFlag.setVisible(true); } else { customItemFlag.setVisible(false); } } }