Field Greyed Out

Andrew Bishop1
Tera Contributor

When I save an Enhancement and go back in, I’m not able to select a different Pending Reason (custom string field) without first changing the State field (UI policy to only show Pending Reason variable IF the State = Pending) to something else, then change back to pending, then adding the reason.

In the screenshot below, you can see that the pending reason field is grayed out. That doesn’t feel like it’s working right to me? I would expect to be able to change the Pending Reason without having to change the State first.

5 REPLIES 5

Waleska
Kilo Guru

It's hard to tell without having access to your instance but the main things to look at are the Dictionary Entry for Pending Reason to ensure it's not set to Read Only there and then all the UI Policies within the Enhancement table to make sure there aren't any that are clashing.

Alok Das
Tera Guru

Hi Andrew,

Please check for the Client Scripts which might be setting the field Pending Reason read only.

Please remove the code:

g_form.setReadOnly('u_field_name','true');

Hope this will resolve your issue.

 

Kindly mark my answer correct/helpful, If I was able to help you in anyway.

Regards,

Alok

Andrew Bishop1
Tera Contributor

Thank you - the Variable isn't Read Only.

I did see this Script:

function onLoad() {
if(g_scratchpad.allVars != ''){
var allVars = g_scratchpad.allVars.split(',');
for(i = 0; i < allVars.length; i++){
g_form.setReadOnly('variables.' + allVars[i], true);
}
}
}

Thanks for the code,

I see that the above code is to make all the variables read only which do not have any values in it. The variables are defined in the scratchpad variable, which you can find in a display business rule.

This is a custom built functionality, I would suggest you to please verify your functionality before making any changes so that it would not break any functionality which was implemented earlier.