DavidHawe
6 years agoQrew Trainee
Values from visible but not acting like it
I am using script to get values then insert into fields. The app is used seasonally so has not been active since last fall. Something has change affecting how the values behave.
This is in an add record situation and the values are visible to my eyes as the form displays but do not behave as if there. Formulas using the fields have no result and Reference fields do not bring in Lookups.
Once the record is saved, they behave. However, we need them to behave while still in the add mode.
Here is the pertinent part. The bolded ones
}
else {
console.log("inspectorNumber is not blank");
if (addRecord) {
// Insert inspector number into appropriate field
$('#_fid_695').val(QNumber);
$('#_fid_10').val(location);
$('#_fid_9').val(CCP);
$('#_fid_374').val(inspectionTable);
}
else {
// Add to the edits field
$('#_fid_769').val(inspectorNumber + ' ' + inspectorName);
}
This is in an add record situation and the values are visible to my eyes as the form displays but do not behave as if there. Formulas using the fields have no result and Reference fields do not bring in Lookups.
Once the record is saved, they behave. However, we need them to behave while still in the add mode.
Here is the pertinent part. The bolded ones
}
else {
console.log("inspectorNumber is not blank");
if (addRecord) {
// Insert inspector number into appropriate field
$('#_fid_695').val(QNumber);
$('#_fid_10').val(location);
$('#_fid_9').val(CCP);
$('#_fid_374').val(inspectionTable);
}
else {
// Add to the edits field
$('#_fid_769').val(inspectorNumber + ' ' + inspectorName);
}