- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello everyone. I have an issue trying to figure out how to design a particular script... I have a check box that will unhide a subform. Once the subform is present, there is a numeric field asking for a quantity, there is a drop down box that asks the user to select either 8oz or 12oz and then there is a final numeric field that will calculate the total. My problem is how to calculate my total based off the selected weight and quantity.
When the form becomes visible, the user will enter a quantity, she will then select the size and this is where I believe I have to place a script with the checkbox that presented the subform. Right now, for all the other subforms, it is rather simple math (there is no size to factor in) using Formcalc. The simple ones are STqty * 10.99 which renders a total cost. The challenge with the different sizes is how to build the script. I'm thinking something like STqty * a value derived from a variable giving me the total cost. I just cannot seem to put 2 and 2 together on this one. Also, I am looking at the script below as a possible solution, but wouldn't know where to place this script.
Please help.
Very respectfully
Mike
if (STsize=8oz)
{
STcst=”10.99”;
}
else
{
STcst=”12.99”;
}
Views
Replies
Total Likes