I'm trying to do what I thought was something simple!
When the user chooses an item and an action, a specific field (or set of fields) should show up. I've only set up the first three items (Category, Certificate #, and Client) to get them working first with the three actions. In Field Rules, I had each set up as follows:
I set up "DELETED" and "INSERTED" as a table because I want the user to be able to choose to delete more than one item, if so desired. Well, I've come to realize the "UPDATE" gives me no issues because that's consists of a Section and two Single Lines. So, I've come to the conclusion that tables won't work properly (although it does work for one of the three) in Field Rules. Is that true? If so, why? BTW, I did try in javascript ... had the exact same issue!
$(document).ready(function(){ //Allow deselecting of radio buttons $('.deselect').on('click', function() { $('.radio input').prop('checked', false); }); // Hide the appropriate Fields when form first loads $('.deleteCategory').hide(); $('.insertCategory').hide(); $('.updateCategory').hide(); $('.deleteCertificateNo').hide(); $('.insertCertificateNo').hide(); $('.updateCertificateNo').hide(); $('.deleteClient').hide(); $('.insertClient').hide(); $('.updateClient').hide(); //Based on chosen Item and Action, show/hide data fields $(".item input, .action input").change(function(){ var item = $(".item input:checked").val(); var action = $(".action input:checked").val(); //Category if (item == "Category" && action == "Delete") { $('.deleteCategory').show(); } else { $('.deleteCategory').hide(); } if (item == "Category" && action == "Insert") { $('.insertCategory').show(); } else { $('.insertCategory').hide(); } if (item == "Category" && action == "Update") { $('.updateCategory').show(); } else { $('.updateCategory').hide(); } //Certificate # if (item == "Certificate #" && action == "Delete") { $('.deleteCertificateNo').show(); } else { $('.deleteCertificateNo').hide(); } if (item == "Certificate #" && action == "Insert") { $('.insertCertificateNo').show(); } else { $('.insertCertificateNo').hide(); } if (item == "Certificate #" && action == "Update") { $('.updateCertificateNo').show(); } else { $('.updateCertificateNo').hide(); } //Client if (item == "Client" && action == "Delete") { $('.deleteClient').show(); } else { $('.deleteClient').hide(); } if (item == "Client" && action == "Insert") { $('.insertClient').show(); } else { $('.insertClient').hide(); } if (item == "Client" && action == "Update") { $('.updateClient').show(); } else { $('.updateClient').hide(); } }); }) //close document.ready