PDA

View Full Version : simple forms calculator


david.barrack304604
08-04-2009, 09:27 PM
Maybe I'm missing it but what's the easy way to display a simple function in a form field based on other form fields? So if A and B were form fields how would I display A*B in another form field, say C? It seems like it would be so obvious but I'm going in circles. I'm guessing I should use a session variable to do the calculation and see the form field, in this case C, to the session variable. But can it be that dynamic? Do I need to use a button to make the session variable and calculation trigger? Thanks and sorry if these are plebeian questions. I've been away DW for a bit.

Dave Buchholz
08-05-2009, 06:33 AM
If you want a DW extension then Kaosweaver has a free (donation optional) extension that will do this via JavaScript for you demo here : http://www.kaosweaver.com/demo/index.php?id=28