Hello Everybody,
Looking for some help to figure out what is wrong with my form. Part of it uses 3 fields:
1. Single line field - lineprelimApproval which set to 1 on specific limits;
2. Single line field - limitsApproved set to yes when limits are approved;
3. Custom HTML - set to empty, Limits approved or Not Approved depending on the combination of first two fields.
Populating Custom HTML with next code:
document.getElementById("q5").innerHTML = ($('.prelimApproval input').val() == '0') ? '' : ($('.limitsApproved input').val()=='yes') ? 'LIMITS PRE-APPROVED' : 'NOT APPROVED';
Results:
- on form submitting page - screenshot submitting - works correctly;
- on approval - screenshot approval - still correct;
- on the completed form view (completed) - second condition does not work.
Could you please help with this puzzle?