This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Customizing Behavior on a Single Form (out of many)
Started 16 years ago by kingworks | 3 posts |
-
Hello,
I've been searching for a way to calculate a total price (item cost * quantity) and forward the user to a credit card processor when the form is submitted.
However, the results I've seen so far all seem to advocate altering a file - usually includes/post-functions.php or something similar - that (as far as I can tell) ALL the forms made with MachForm rely on.
How can I customize the behavior for a single form without wrecking all the other forms we're using?
Posted 16 years ago # -
I'm new to this as well, but I believe you would use the form ID that will need customization. If not, I would like to have the answer to this as well for I am trying to do the same thing.
Posted 16 years ago # -
Almost on most code, you can use $form_id variable to apply certain behaviour to certain form.
So you can use something like:
if($form_id == 3){ //do specific behavior here }else{ //the normal behavior here }
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.