0

I have the following JS code which works if I do not make the field read-only, however I need AllUsers to be unable to edit this field.

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?

// 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();

1 Answer 1

1

From Dmitry over at Forms Designer

In the display mode you should use the following code to get text representation of a field value: fd.field('FieldName').control()._el().text()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.