This goes a little bit beyond what can be done via field rules. Basically, if three conditions are met then hide a radio button field and the submit button. Class names have been assigned to all radio buttons.
This is a jumbled mess of es6 and jquery. I thought it may be cleaner to assign a counter, if counter >=3 then run function to hide fields. This may work better with "if (operand && operand && operand)" but my jquery needs some serious work.
$(document).ready(function () {
let conditionals = "0";
//Radio Button CSS class = iraType
//Choices value added = Inherited IRA
$('.iraType input[value="Inherited IRA"]').click(function () {
conditionals += 1;
});
//Radio Button CSS class = requestType
//Choices value added = New Application
$('.requestType input[value="New Application"]').click(function () {
conditionals += 1;
});
//Yes/No radio button
$('.isContribution input[value="No"]').click(function () {
conditionals +=1;
});
//Function to hide radio button and submit button
const hideClasses = () => {
$('.designateBeneficiaries').hide();
$('.Submit').hide();
}
//If all three conditions are met run function
const isConditionMet = () => {
if (conditionals >= 3) {
return hideClasses()
}
}