Re-calculate Form if Drop Downs Are Changed

Re-calculate Form if Drop Downs Are Changed

Hi,

I'm trying to get a form to re-check if a user changes the options, so it can re-calculate.

I can get it to work the first selection, but if they go back and change a selection it doesn't recalculate.

e.g. I'm adding the Days Approved + Approval Date = Review Expiry Date


Here's what I have that works first selection, but not when you change your mind


if Days_Approved1 = "7"
{
input.Review_Or_Expiry_Date = Approval_Date.addDay(7);
}
if Days_Approved1 = "14"
{
input.Review_Or_Expiry_Date = Approval_Date.addDay(14);
}

Any help much appreciated

Thanks

Paul