Associate
- Joined
- 13 Jul 2009
- Posts
- 1,133
- Location
- Cambs
Long shot but is there anyone out there that could help with the below:
I have the following JS code which works if I do not make the field read-only, however I need AllUsers to have the LifecycleStage field read only.
I tried to use a calculated field instead but this did not work either. The calculated filed is PMOLifecycleStage.
Any ideas on how I can make it work?
I have the following JS code which works if I do not make the field read-only, however I need AllUsers to have the LifecycleStage field read only.
I tried to use a calculated field instead but this did not work either. The calculated filed is PMOLifecycleStage.
Any ideas on how I can make it work?
Code:
// Initiate TAB
function setInitiateTab() {
var v = fd.field('LifecycleStage').control().value();
if (v == '(2) Initiate') {
$('#fd_tabcontrol-1').tabs('option', 'disabled', [2,3,4,5]);
} else {
$('#fd_tabcontrol-1').tabs('option', 'disabled', null);
}
}
// Subscribe on status change
fd.field('LifecycleStage').control().change(function () {
setInitiateTab();
});
// Initialize
setInitiateTab();