AnsweredAssumed Answered

Cannot get script to work with drop down box

Question asked by danlee on Feb 21, 2015
Latest reply on Feb 22, 2015 by SteveMartino

Title

Cannot get script to work with drop down box

Post

I have a drop down box with choices, Weight Loss and Weight Gain.  If user chooses Weight Loss one calculation occurs.  If they choose Weight Gain a different calculation occurs.  Right now if they choose Weight Loss the correct calculation occurs.  But if they choose Weight Gain the field comes out empty.  Please help!!

Case ( Clients::Weight Loss_Gain = "Weight Loss" ;

(Case ( not IsEmpty ( ActivityLevelPossibleDelete ) ; Max ( Case ( ActivityLevelPossibleDelete = "Sedentary" ;(1.2 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Lightly Active (1-3 days/week)";(1.375 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Moderate (3-5 days/week)" ;(1.55 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Very Active (6-7 days a week)" ;(1.725 * BMRCalculator)-500) ; 1200 ); 

Clients::Weight Loss_Gain = "Weight Gain" ;

Case ( not IsEmpty ( ActivityLevelPossibleDelete ) ; Max ( Case ( ActivityLevelPossibleDelete = "Sedentary" ;(1.2 * BMRCalculator) + 200;
ActivityLevelPossibleDelete = "Lightly Active (1-3 days/week)";(1.375 * BMRCalculator) + 200;
ActivityLevelPossibleDelete = "Moderate (3-5 days/week)" ;(1.55 * BMRCalculator) + 200;
ActivityLevelPossibleDelete = "Very Active (6-7 days a week)" ;(1.725 * BMRCalculator) + 200) ; 1500 ) )

 ) ) ) 

Outcomes