Link to home
Start Free TrialLog in
Avatar of Raven1155
Raven1155Flag for United States of America

asked on

Form with calculations...

I want to be able to have a user fill out a form telling me what services they want from me, and estimating the cost for the user (e.g., 3 x ServiceA costs $75), then email the form data (which'll include the user's contact info) to me.

I made a PDF form that'll do the calculations for me, but can't email the results to myself, so it's worthless, so I want to do the same kind of thing on a regular web form.

Thus, I'd like to ask-

a)  Is it do-able at all?
b)  Is there a way to make a form field "read-only" so that the calculation results aren't accidentally overwritten by the user?

I think that I can do the calculations via JScript or JavaScript (whichever), but can't find the form field PROPERTIES described anywhere in the FrontPage Help (an oxymoron, btw).  So,
c) Could someone point me to a decent online reference to FrontPage Form field parameters and/or JavaScript code to manipulate same?

{Oh, and if anyone has a solution to emailing the PDF form's data, that'd be cool...}

Thanks in advance!
 Jim 8^)

PS- High points on this question 'cuz it's multifaceted!
Avatar of coreybryant
coreybryant
Flag of United States of America image

Well as far as the form field properties, double click on one while in the WYSIWYG mode.  There you should see the properties.  Or highlight a field right click & choose foirm field properties.

You are right about the JS calculations.  FP, as far as I know, will not do it.

-Corey
Avatar of Raven1155

ASKER

Corey,

Perhaps I should use the term "parameters" rather than "properties".  I'm asking how one codes JS to, for example, change the value of a textbox.  Is it "T1.value" or "T1.text"?!?!  I would think that there is a reference out there SOMEWHERE...

Your last line, "You are right about the JS calculations.  FP, as far as I know, will not do it." is slightly confusing 'cuz I asked (my fault) about several things.  Which one won't FP "do"?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of coreybryant
coreybryant
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of seanpowell
seanpowell
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sean,

Thanks.  It looks to me like these methods utilize the user's email program, requiring them to send the email message (at least if they don't automatically send messages without looking at them, which I hope most people don't do).  I'm looking into server-side message sending (such as when a user clicks on an FP form which has an email address as part of the Submit action).
I don't consider this question really answered, but don't want to forget and leave it open indefinitely so will split the points based on perceived (by me) degree of helpfulness to my particular situation.  Thanks for your assistance!