Okay so this this is what I have put together and seems to work in my small test environment. I will be adapting it to the full evaluation form over the course of the next couple days. Uses the CSS types of filledfield and dropdown as listed by Kenneth above and uses a change field trigger on the employee ID field that is filled by the initial stored procedure so that all the other single line "filledfield"s have values when the actual radio button/checkboxes are populated. I have Yes-No, A-B-C, A-B-C-D-E, and A-B-C-D-E-F-G questions through out the form that have the "dropdown". I hope this helps others that need this type of solution. I have chosen to use radio buttons to keep from having extra code to limit the number of checkboxes that can be clicked at a time. We are looking for a single response from these questions that allow us to change values as needed with out having the client choose every question over to update the database.
$(function() {
$(document).ready(function() {
var trigField = document.getElementById("Field10");
trigField.onchange = function () {
fill7choiceRadio("recommendation","Field182")
fill3choiceRadio("gpAction","Field183")
fill5choiceRadio("v_S01G01","Field137");
fill5choiceRadio("v_S01G02","Field149");
fill5choiceRadio("v_S02G01","Field187");
fill5choiceRadio("v_S03G01","Field153");
fill5choiceRadio("v_S03G02","Field154");
fill5choiceRadio("v_S03G03","Field155");
fill5choiceRadio("v_S04G01","Field156");
fill5choiceRadio("v_S04G02","Field157");
fill5choiceRadio("v_S05G01","Field158");
fill5choiceRadio("v_S05G02","Field159");
fill2choiceRadio("S01G02cd","Field151");
fill2choiceRadio("gpPlanWorked","Field181")
fill2choiceRadio("S06a","Field170");
fill2choiceRadio("S06b","Field171");
fill2choiceRadio("S06c","Field172");
fill2choiceRadio("S06d","Field173");
fill2choiceRadio("S06e","Field174");
fill2choiceRadio("S06f","Field175");
fill2choiceRadio("S06g","Field176");
fill2choiceRadio("S06h","Field177");
fill2choiceRadio("S06i","Field178");
};
});
});
// Yes-No RadioButton
function fill2choiceRadio (inp, targ) {
var value = $('.' + inp + ' input').val();
switch(value) {
case "1":
document.getElementById(targ + '-0').checked = true;
break;
case "2":
document.getElementById(targ + '-1').checked = true;
break;
default:
alert(value);
}
}
// A-B-C RadioButton
function fill3choiceRadio (inp, targ) {
var value = $('.' + inp + ' input').val();
switch(value) {
case "1":
document.getElementById(targ + '-0').checked = true;
break;
case "2":
document.getElementById(targ + '-1').checked = true;
break;
case "3":
document.getElementById(targ + '-2').checked = true;
break;
default:
alert(value);
}
}
// A-B-C-D-E RadioButton
function fill5choiceRadio (inp,targ) {
var value = $('.' + inp + ' input').val();
switch (value){
case "1":
document.getElementById(targ + '-0').checked = true;
break;
case "2":
document.getElementById(targ + '-1').checked = true;
break;
case "3":
document.getElementById(targ + '-2').checked = true;
break;
case "4":
document.getElementById(targ + '-3').checked = true;
break;
case "5":
document.getElementById(targ + '-4').checked = true;
break;
default:
alert(value);
}
}
// A-B-C-D-E-F-G RadioButton
function fill7choiceRadio (inp,targ) {
var value = $('.' + inp + ' input').val();
switch (value){
case "1":
document.getElementById(targ + '-0').checked = true;
break;
case "2":
document.getElementById(targ + '-1').checked = true;
break;
case "3":
document.getElementById(targ + '-2').checked = true;
break;
case "4":
document.getElementById(targ + '-3').checked = true;
break;
case "5":
document.getElementById(targ + '-4').checked = true;
break;
case "6":
document.getElementById(targ + '-5').checked = true;
break;
case "7":
document.getElementById(targ + '-6').checked = true;
break;
default:
alert(value);
}
}