wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

Brand new to all of this (not a coder) . . . I have built a cool little app for my industry, but would like to add a feature and have no clue where to start. A walkthrough would be greatly appreciated.

I have a input field (number) that the user will enter a digit, then they would select a multiplier with a pick down list . . . then with a button click, the app will make the calculation.

Here is a screenshot of what I am trying to do:

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Simple Calculation Script

This can be easily done with JavaScript. In general, the steps would be:

On button click:
1) Read the value from the input field
2) Read the value from Unit Type list
3) Read the value from The Multiplier list
4) Calculate the result.

Here is how to read values using JavaScript: http://help.gotiggr.com/documentation...

Let me know if this helps...I'll be happy to provide more details. If you would like, please share the project with a href="mailto:support@gotiggr.com" rel="nofollow"support@gotiggr.com/a and I will help you on the actual project.

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

I am going to read the documentation you sent. The project has been shared.

Thanks for the quick reply.

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

I applied the quick tutorial you provided with success and I understand a bit more about the relationship with input fields to actions.

I think I will need help implementing the function I am needing.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Simple Calculation Script

Sure.. on what specific part do you need help?

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

I need to see things to learn . . . can you make it work for one or two sets of data (you can make up the multipliers, etc) . . . so I can go in and see what is done to make the four steps you listed above work?

Hands down awesome support so far...it is definitely what is going to keep me with TIGGR.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Simple Calculation Script

I opened the app, can you give me sample input and what should be the result?

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

Just for a simple scenerio:

input = 1
type 1 =foot
type 2 =inch
RESULT: 1 foot Equals 12 Inches

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

Sorry I was away for a few . . . I am in front of my computer now for a while, so if you are able to help again, I will watch for you in chat.

wv.wilson75
Posts: 0
Joined: Fri Dec 30, 2011 2:53 am

Simple Calculation Script

Logistically, I am not positive this is the best setup . . . let's say the next set is

input = 1
type 1 = yard
type 2 = feet
RESULT: 1 yard Equals 3 feet

Return to “Issues”