I have a parameter rule that is making a field required on a form based on existing user data and how the form is populated.
The requirements are changing to have the field display an initial value which will break my rule.
I want to adjust the rule to ensure that a specific value is selected for the form field based on certain conditions.
I tried to adjust the rule using a constraint but I was still able to submit the form "incorrectly". I've tried multiple formats for the constraint in the rule below:
Constraint (Condition)
Constraint (BenefitCancellation = "BTWBENEFITS"
Constraint (BenefitCancellation.BTWBENEFITS)
Any ideas would be appreciated.
Existing Parameter Rule:
BenefitCancellation
if (BenefitEnrollment = "PARKINGBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "CLIPPERBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "COMBINEDTRANSITBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "CTABENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "METRABENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "PTREIMBURSEMENTBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "SMARTRIPBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits")))))))
required
untranslatable:"Active Bike to Work Benefit on Record, Please Update Form to Cancel Bike to Work Benefit."
Desired Parameter Rule
BenefitCancellation
if (BenefitEnrollment = "PARKINGBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "CLIPPERBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "COMBINEDTRANSITBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "CTABENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "METRABENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "PTREIMBURSEMENTBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits"
or (BenefitEnrollment = "SMARTRIPBENEFITS" and Employee.CurrentElection = "Bike to Work Benefits")))))))
Constraint (BenefitCancellation = "BTWBenefits"
untranslatable:"Active Bike to Work Benefit on Record, Please Update Form to Cancel Bike to Work Benefit."