I'm trying to do something similar to this post:
https://answers.laserfiche.com/questions/113339/Set-radio-button-value-based-on-a-field#113353
I have a lookup filling hidden columns in a table, and I want radio buttons in that table to fill based on the values from the lookup. There are two hidden columns, each with a corresponding radio button: WFHText -> WFH (Yes or No), and LocationText -> Location (Home or Office). Each radio button only has 2 options. The code there looks like it could work, but it's not meant for a table. As I'm not great with Javascript, can someone give me instructions on adapting the code?
$(".levelhid").change(function(){
var levelhid = $(".levelhid input").val();
if (levelhid == "SENR"){
$(".level input:check").val("Senior");
}
else if (levelhid == "ADJ"){
$(".level input:check").val("Adjunct");
}
else if (levelhid == "MSTR"){
$(".level input:check").val("Master");
}
});
Also, would this require any CSS? If so, how would I implement it?