Few days ago one of my client requested me to implement a promo code field ( screenshot attached) in payment form (which i helped him created using contact form 7) to show a discounted price. I helped him implemented this and sharing you the code.
Suppose you have a paypal button to collect money or sale product and you want your client to submit Contact form 7 form too. To make that work easy for your client it is wise to redirect your client to paypal payment collection after successful submission of the form. Here is the procedure
This Post is for advanced users. So if you are using Contact Form 7 and Contact Form 7 Multi Steps Form and want your form to go to or Redirect Different Form based on Radio button or Drop down or Checkbox selection, then this post can help you.
I have used Jquery and Ajax to solve this issue. If you have any Question, Please ask question in the comments section.
The Contact Form 7 Code i used
First Name:
[text your-name]
Last Name:
[text last-name]
What is your goal?
[radio radio-20 default:0 "Lose Weight" "Build Muscle"]
[submit "Continue Questionnaire"][multistep "2-5"]
<div id="bm"></div>
If you want to implement a form using Contact Form 7 where users will select Tutor name or Department name and the mail will be delivered to that specific tutor or department then this tutorial is for you.
To solve the issue, I am sharing you what to do in the steps below
This tutorial is only for those who are trying to add calculator fields like where user will put value in one field and some calculation will be done automatically and result will be viewable in other single or multiple fields in contact form.
This technique I have shared is for advance level users who have knowledge of Jquery and using Contact form 7 . If you are new or facing problem to implement such type of fields, feel free to message me in comments section or take my personal help in my fiverr profile.
Here is the technique
1. At first put your calculator fields where you want to do or show calculation
2. Use Jquery code something like this
I have shared you the Jquery auto calculation code for contact form 7 below
<script>
jQuery(document).ready(function(){
//alert("Welcome");
var ce;
var ps;
var ar;
jQuery("#ce").on("change", function() {
ce= this.value ;
ps=(((ce/30))/5)*1.2;
ar=(((ps*1000)/250)*(0.941*1.65)*1.6);
jQuery("#ps").val(ps.toFixed());
jQuery("#ar").val(ar.toFixed());
});
});
</script>
3. Result
If you have any issue feel free to ask me question here in comments section
OR
You can take my personal help in skype : om2000_cuet