Forums

is it possible to have program computation in the forms?how?

donna22 03 Feb, 2009
is it possible to have program computation in the forms?how?

aside from add,edit and deleting of records. how can i create a simple calculations and submitting it to the database?

or is there any modules capable of doing this?

please help, need this urgent..

thank's guys & more power to this site!😉
GreyHead 03 Feb, 2009
HI donna22,

You can do almost any calculation in a ChronoForms Form! But it's very hard to answer without knowing what calculations you want to do.

In general, there are two ways to do calculations: [list]
  • In the browser using JavaScript so that the user sees the results. You can save the results of these by having the JavaScript change the results of a field, usually either a text input or a hidden input.
  • In the server you can do calcuations using PHP in the OnSubmit boxes, these are not visible to the user - unless you re-show the form or use AJAX - and are possibly a more flexible as it's quite possible to look up information from database tables or from other sites.
  • [/list]

    Bob
    donna22 06 Feb, 2009
    i will be computing for an online loan..really have no idea how to do this using chronoforms..i've done the basic add/edit of entry..but i dont know how to do computations..please help..
    GreyHead 06 Feb, 2009
    Hi donna22,

    Please use Google to find a script that does the kind of calculation that you need - there are thousands out there of all kinds of quality so be careful. We can probably then help you adapt the script to use it with ChronoForms.

    OR write a complete specification for your calculation - create the complete form with all the fields and write down **exactly** what calculation you need and we may be able to help with that.

    Sorry but it's completely impractical to give you a general tutorial on 'doing computations'.

    Bob
    This topic is locked and no more replies can be posted.