Hi @Nikita_Kurguzov,
I have created a review wizard which displays Read-Only fields but some of the fields aren't disabling.
The fields that are white should be read only but they're not disabling....
Here is the code I have used to make them 'Read-Only'
fd.spRendered(function() {
fd.field('RTitle').disabled = true
fd.field('title_x002e__x0020_').$on('change', function() {
fd.field('RTitle').value = fd.field('title_x002e__x0020_').value;
})
fd.field('RFirstName').disabled = true
fd.field('First_x0020_Name_x0020_').$on('change', function() {
fd.field('RFirstName').value = fd.field('First_x0020_Name_x0020_').value;
})
fd.field('RLastName').disabled = true
fd.field('Last_x0020_Name_x0020_').$on('change', function() {
fd.field('RLastName').value = fd.field('Last_x0020_Name_x0020_').value;
})
fd.field('RAssignNum').disabled = true
fd.field('Assignment_x0020_Number_x0020_').$on('change', function() {
fd.field('RAssignNum').value = fd.field('Assignment_x0020_Number_x0020_').value;
})
fd.field('RPayBand').disabled = true
fd.field('Pay_x0020_Band_x0020_').$on('change', function() {
fd.field('RPayBand').value = fd.field('Pay_x0020_Band_x0020_').value;
})
fd.field('RCurrentHours').disabled = true
fd.field('Current_x0020_Hours_x0020_').$on('change', function() {
fd.field('RCurrentHours').value = fd.field('Current_x0020_Hours_x0020_').value;
})
fd.field('RHospital').disabled = true
fd.field('Hospital').$on('change', function() {
fd.field('RHospital').value = fd.field('Hospital').value.LookupValue;
})
fd.field('RDivision').disabled = true
fd.field('Divisions').$on('change', function() {
fd.field('RDivision').value = fd.field('Divisions').value.LookupValue;
})
fd.field('RStaffGroup').disabled = true
fd.field('Main_x0020_Staff_x0020_Group').$on('change', function() {
fd.field('RStaffGroup').value = fd.field('Main_x0020_Staff_x0020_Group').value;
})
//tester
fd.field('REffectiveDate').disabled = true
fd.field('Effective_x0020_Date').$on('change', function() {
fd.field('REffectiveDate').value = fd.field('Effective_x0020_Date').value;
})
fd.field('RExpectedDateofReturn').disabled = true
fd.field('Expected_x0020_Return').$on('change', function() {
fd.field('RExpectedDateofReturn').value = fd.field('Expected_x0020_Return').value;
})
fd.field('RExtraInformation').disabled = true
fd.field('Extra_x0020_Information_x0020_').$on('change', function() {
fd.field('RExtraInformation').value = fd.field('Extra_x0020_Information_x0020_').value;
})
});
I have other forms and they're behaving as normal but this form is behaving really weird.
Where am I going wrong?