XModPro

Use of a discount code?

AF Webmaster AF Webmaster posted Nov 17, 2014
Active Nov 19 · Viewed 1516 times

Howdy folks!

I'm kind of an xMod neophyte ... can someone please help?

Basically we have a form for students to register and if they enter a valid discount code they can pay a special reduced fee.  

On the form will be a fee calculation button and a discount code textbox along with a 'Your fee is' label.  In going through the documentation I don't see how to query the database on the button click with the discount code entered and then inject the value returned into the 'Your fee is' label or text control.  Those controls don't seem to have a datasource option. 

It would be great for this to all take place via ajax as well.  Can someone point me to a fiddle or to the place in the documentation that I'm overlooking?

Thank you kindly!

7 Replies

Loading replies...